Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
What is the correct SQL query to count the number of rows in a table named 'sales' where the 'amount' column exceeds 100?
A
SELECT COUNT_IF(amount > 100) FROM sales;
B
SELECT COUNT(*) FROM sales WHERE amount > 100;
C
SELECT COUNT_IF(amount > 100) AS count_above_100 FROM sales;
D
SELECT COUNT(amount > 100) FROM sales;