Question

What is the purpose of the CASE statement in SQL?

A To create a new table with a defined structure and constraints.
B To perform conditional logic and return specific values based on different conditions in a query.
C To join multiple tables based on a common column and retrieve related data.
D To insert, update, or delete records in a database table.
E To define and manage user permissions and access controls in a database.
Practice Next

Hey! Ask a query