Database MCQS - QUESTION DETAILS

In SQL Server, what is the purpose of the CASE statement?
A. Filter rows based on a condition
B. Sort the result set
C. Combine rows into groups
D. Perform conditional logic in a query

The CASE statement is used to perform conditional logic in a query in SQL Server.

Similar Questions

Which SQL statement is used to create a new table in a database?






Which statement is used to delete records from a table in SQL Server?






Which SQL statement is used to remove a user's privileges in MySQL?






Which SQL Server statement is used to remove an index from a table?






What is the default sorting order of the ORDER BY clause in SQL?






In SQL Server, what is the purpose of the GROUP BY clause?






Which command is used to select all columns from a table named "employees"?






What does T-SQL stand for in the context of SQL Server?






Which SQL Server data type is used to store a date and time combination?






Which SQL function is used to find the current user in MySQL?