unique-agg

1.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i unique-agg

    Weekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • tute