Problem scenario
You are using PostgreSQL and currently administering a database you inherited from a different company. You want to determine the primary key of a given table. How do you identify the primary key of a table?
Solution
Modify the query below so you replace “contint” with the name of the table you are interested in. The result of this SQL query will be the primary key of that table.
…