SQL_MCQ_Beginners
SQL_MCQ_Beginners
table?
2. What is the correct syntax to filter records where the "salary" is greater than
5000?
BY DESC
4. How do you change the value of the "email" column in the "users" table for a
specific user?
electronics by 10%
7. How do you select employees whose names start with the letter 'A'?
12. Which of the following correctly filters records for ages between 18 and 25?
a) WHERE age BETWEEN 18, 25 b) WHERE age >= 18 AND age <= 25
13. Which clause groups records with the same values in specified columns?
a) Deletes students with grades over 80 b) Filters students with grades over 80
15. How do you update the "status" column to "active" for users aged over 30?
salary ASC;`
salaries
order
a) Counts total orders in the table b) Counts orders with a status of "Shipped"
c) Displays all shipped orders d) Deletes shipped orders from the table
19. How do you select records where "city" is either 'Delhi' or 'Mumbai'?