Difference between Primary Key and Unique Key.
Asked in the Pre-Placement Interview stage. Using the PostgreSQL table provided, write a query that displays the table's primary key and unique constraints so their definitions can be compared directly.
candidate_accountsconstraint_name, constraint_type, and constraint_definition| Column | Type | Description |
|---|---|---|
| account_idPK | INT | Primary identifier for the account |
| VARCHAR(255) | Email protected by a unique constraint | |
| display_name | VARCHAR(100) | Displayed account name |
| account_status | VARCHAR(20) | Current account status |