skip to Main Content

Postgresql – De-duplicate part of a table on given condition

This is my message table. Now I am trying to write an query to group records by collection_id (only first instance) if type multi-store else by message.id . id | collection_id | type | affiliation_id | status | scheduled_for_date --------------------------------------+--------------------------------------+----------------+----------------+--------------+--------------------…

VIEW QUESTION
Back To Top
Search