DROP TABLE command do in SQL?
ALTER TABLE command allow you to do?
| Qno | Answer |
|---|---|
| 1 | B) CREATE TABLE |
| 2 | C) Removes the table and its structure from the database |
| 3 | A) ALTER TABLE … DROP COLUMN |
| 4 | B) Modify the structure of a table |
| 5 | B) ALTER TABLE |
| 6 | C) ALTER TABLE … RENAME TO |
| 7 | B) UNIQUE |
| 8 | B) To uniquely identify each record in a table |
| 9 | D) FOREIGN KEY |
| 10 | B) It must contain unique values |
| 11 | B) NOT NULL |
| 12 | A) Limits the range of values in a column |
| 13 | B) A way to optimize data retrieval speed |
| 14 | B) CREATE INDEX |
| 15 | A) An index that only stores non-duplicate values |
| 16 | B) To speed up retrieval of records |
| 17 | A) DROP INDEX |
| 18 | B) Unique Index |
| 19 | A) A stored query that appears as a virtual table |
| 20 | A) CREATE VIEW |
| 21 | B) Yes, it can include data from multiple tables |
| 22 | B) DROP VIEW |
| 23 | A) ALTER VIEW |
| 24 | C) For simplifying complex queries |
| 25 | B) An object that generates sequential numbers |
| 26 | B) CREATE SEQUENCE |
| 27 | B) NEXTVAL |
| 28 | A) A synonym is an alias for a table or other object |
| 29 | B) To simplify access to database objects |
| 30 | B) DROP SEQUENCE |