1.0.2 • Published 7 years ago

unique-agg v1.0.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
7 years ago

unique-agg

Returns the unique not null value OR raise an exception

language: English also available in: Spanish

Case of use

When you need to normalize the content of an imported table, unique_agg checks the data while inserting in the new table.

For example you have imported_data tabla and want to extract info for countries and cities tables.

INSERT INTO countries (country_id, country_name)
  SELECT country_id, unique_agg(country_name)
    FROM imported_data
    GROUP BY country_id;

Install

psql < bin/create_unique_agg.sql

License

MIT

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago