easy5 pts · first answer countssqlaggregation
COUNT(*) vs COUNT(column)
The column discount holds 5, NULL, 7, NULL. What does this query return?
SELECT COUNT(*), COUNT(discount) FROM orders;
Discussion 0
Join free to post in the discussion.
Related questions
- Purpose of a primary keyData Engineer
- Row count of a LEFT JOINData Engineer
- Filtering with = NULLData Engineer
- Filtering groups with HAVINGData Engineer
- Adding a number to NULLData Engineer
- Orders pointing to missing customersData Engineer
- Upserting into a target tableData Engineer
- Keeping the latest row per keyData Engineer