Structured Query Language (SQL) is a powerful tool for managing and querying data in relational databases. It is used to perform operations like retrieving, inserting, updating, and deleting data. SQL is essential for backend developers, data analysts, and database administrators. Preparing with multiple-choice questions (MCQs) helps solidify these foundational concepts and improves problem-solving skills for interviews.
1.) What does SQL stand for?
2.) Which of the following is a type of SQL statement?
3.) Which SQL command is used to retrieve data from a database?
4.) What is a primary key?
5.) Which command is used to delete all rows from a table without removing the table?
6.) What is the purpose of the WHERE clause in SQL?
7.) Which SQL function is used to count the number of rows in a table?
8.) What does the GROUP BY clause do?
9.) What is a foreign key?
10.) Which SQL keyword is used to sort the result set?