Codington
0 of 8 problems solved • 0%

Exercise prompt

Leave Optional Aliases Open

The prepared services table has an integer ID and a text alias with a plain UNIQUE constraint. In PostgreSQL, several rows may have NULL in that column. Each assigned alias must be unique.

Your task

Insert IDs 1 and 2 with missing aliases, and ID 3 with the alias gateway. Check that the first two rows each show NULL.

Opening the database…