CS FundamentalsEasyTCS NQT · Infosys pattern
Which of these SQL commands is a DDL (Data Definition Language) command?
- A. INSERT
- B. UPDATE
- C. ALTER
- D. SELECT
Correct answer: C. ALTER
DDL commands define or change structure: CREATE, ALTER, DROP, TRUNCATE, RENAME. INSERT and UPDATE are DML; SELECT is a query (DQL/DML).
More DBMS and SQL questions
- 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)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Two tables have 6 rows and 4 rows. How many rows does SELECT FROM A, B; (no WHERE clause) return?