Q. What is the purpose of the CASE statement in SQL?

A
Sort data
B
Perform conditional logic
C
Join tables
D
Filter rows
Solution:

The CASE statement provides conditional logic, allowing different outputs based on conditions in a query.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!