CS FundamentalsEasyTCS NQT · Infosys pattern
Which pair of properties must every primary key satisfy?
- A. Unique and NOT NULL
- B. Unique and indexed as clustered
- C. Unique and referenced by a foreign key
- D. NOT NULL and numeric
Correct answer: A. Unique and NOT NULL
A primary key identifies each row, so its values must be unique and can never be NULL. It need not be numeric or clustered, and nothing has to reference it.
More DBMS and SQL questions
- Which ACID property guarantees that a transaction's changes are applied completely or not at all?
- Which of these SQL commands is a DDL (Data Definition Language) command?
- In an ER model, a weak entity set is identified by:
- Which SQL clause filters groups AFTER aggregation?
- Which statement about the SQL command TRUNCATE TABLE is correct?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…