SQL Basics

There are Multiple Choice Questions

Correct answers color: Green

Wrong answers color: Red

 
START LEARNING

#1. What does SQL stand for?

#2. Which SQL statement is used to retrieve data from a database?

#3. Which keyword is used to sort the result set in SQL?

#4. Which function is used to return the total number of rows in a table?

#5. What is the correct syntax to create a new table?

#6. Which SQL statement is used to delete data from a table?

#7. How do you select all columns from a table named “users”?

#8. What is the purpose of the WHERE clause in SQL?

#9. Which operator is used to search for a specified pattern in SQL?

#10. Which command is used to modify an existing table in SQL?

#11. Which SQL clause is used to group rows with the same values?

#12. What does the SQL INNER JOIN do?

#13. Which function is used to calculate the total of a numeric column?

#14. What is the result of a LEFT JOIN in SQL?

#15. Which command is used to delete all records from a table but keeps the structure?

#16. How do you find records where a column matches a specific pattern?

#17. What is the default sorting order in SQL?

#18. Which clause is used to filter grouped data?

#19. Which SQL statement adds new rows to a table?

#20. Which operator is used to combine multiple conditions in a WHERE clause?

#21. Which SQL statement is used to return unique values?

#22. Which SQL function returns the average value of a numeric column?

#23. What does the SQL command ALTER TABLE do?

#24. Which operator is used to combine the result of multiple SELECT statements?

#25. How do you specify a condition for rows to be included in a result set?

#26. What will the following query do? SELECT * FROM employees WHERE salary BETWEEN 5000 AND 10000;

#27. Which clause is used to specify the number of rows to return in SQL?

#28. What is the purpose of the SQL FOREIGN KEY?

#29. Which SQL keyword is used to check a condition after grouping?

#30. What will the DELETE FROM table_name command do without a WHERE clause?

#31. Which SQL statement retrieves rows where a column contains null values?

#32. What does the SQL LIMIT keyword do?

#33. Which SQL function returns the smallest value in a column?

#34. What does the SQL ORDER BY column DESC do?

#35. Which SQL command removes a column from a table?

#36. Which SQL constraint ensures that all values in a column are unique?

#37. What does the SQL CREATE INDEX statement do?

#38. What is the purpose of the SQL DEFAULT constraint?

#39. Which statement is used to remove duplicate rows from a query result?

#40. Which clause in SQL is used to specify conditions on aggregated data?

Previous
Finish

Results

Congratulations !

Opps! Try Again

 

For More Information Visit : – India gk

Contact for website Design and development – Chaturbhuja Sons

Leave a Reply