Answers for "postgresql find missing id"

SQL
0

postgresql find missing id

SELECT all_ids AS missing_ids
FROM generate_series((SELECT MIN(id) FROM your_table), (SELECT MAX(id) FROM your_table)) all_ids
EXCEPT 
SELECT id FROM your_table
Posted by: Guest on October-12-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language