SQL Basics
What does SQL stand for in the context of database management?
- A. Structured Query Language
- B. Simple Question Language
- C. Standard Query Linguistics
- D. Structured Question Logic
- E. Sequenced Query Language
CRUD Operations
Which SQL command is used to insert new data into a database table?
- A. CREATE
- B. UPDATE
- C. INSERT
- D. DELETE
- E. SELECT
SQL Operators
Which SQL operator is used to specify a range of values in a WHERE clause?
- A. LIKE
- B. IN
- C. EQUALS
- D. BETWEEN
- E. COMPARE
Aggregation Functions u0026 Constraints
Which SQL aggregate function calculates the average value of a numeric column?
- A. COUNT
- B. SUM
- C. AVG
- D. MIN
- E. MAX
Joins u0026 Functions
What type of SQL join returns all rows from the left table and matching rows from the right table?
- A. INNER JOIN
- B. RIGHT JOIN
- C. FULL OUTER JOIN
- D. LEFT JOIN
- E. CROSS JOIN
Indexes u0026 Transactions
What is the purpose of an index in a SQL database?
- A. To enforce data integrity
- B. To speed up data retrieval
- C. To store metadata
- D. To define relationships between tables
- E. To compress data
Query-Based Questions
Which SQL keyword is used to sort the result-set of a query?
- A. GROUP BY
- B. SORT BY
- C. ORDER BY
- D. ARRANGE
- E. CLASSIFY
SQL Basics
Which SQL command is used to modify existing data in a database table?
- A. INSERT
- B. MODIFY
- C. UPDATE
- D. ALTER
- E. CHANGE
CRUD Operations
What does the acronym 'CRUD' stand for in database operations?
- A. Create, Read, Update, Delete
- B. Compile, Run, Upload, Download
- C. Connect, Retrieve, Upgrade, Disconnect
- D. Control, Revise, Undo, Deploy
- E. Collect, Register, Utilize, Distribute
SQL Operators
Which operator is used to compare a value to a list of specified values?
- A. EQUALS
- B. LIKE
- C. BETWEEN
- D. IN
- E. WITHIN
Aggregation Functions u0026 Constraints
Which constraint prevents duplicate values in a column?
- A. NOT NULL
- B. PRIMARY KEY
- C. FOREIGN KEY
- D. UNIQUE
- E. CHECK
Joins u0026 Functions
Which SQL join returns only rows where there is a match in both tables?
- A. LEFT JOIN
- B. RIGHT JOIN
- C. FULL OUTER JOIN
- D. INNER JOIN
- E. CROSS JOIN
Indexes u0026 Transactions
What does ACID stand for with respect to database transactions?
- A. Atomicity, Consistency, Isolation, Durability
- B. Accuracy, Completeness, Integrity, Dependability
- C. Application, Control, Interface, Design
- D. Access, Correction, Information, Distribution
- E. Authentication, Creation, Identification, Deletion
Query-Based Questions
Which SQL clause is used to filter data after grouping?
- A. WHERE
- B. GROUP BY
- C. ORDER BY
- D. HAVING
- E. FILTER
SQL Basics
Which SQL command is used to remove a table from a database?
- A. DELETE TABLE
- B. REMOVE TABLE
- C. DROP TABLE
- D. ERASE TABLE
- E. KILL TABLE