Without using a FROM clause in the outer query, return the total number of distinct products sold in
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
Without using a FROM clause in the outer query, return the total number of distinct products sold in transactions as product_count and the overall average transaction amount rounded to 2 decimals as avg_amount
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.