Skip to content
RED SAG Skills
medium10 pts · first answer countsindexingsql

Checking if any row exists

An API checks whether a customer has any order using SELECT COUNT(*) FROM orders WHERE customer_id = $1 and then tests count > 0. What is a better query?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions