New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
SQL Question
AI Insights
Quick Summary
Link order quantities with product prices to calculate individual transaction revenues.
Aggregate the computed revenues by product line to determine category totals.
Sort the final output by total revenue in descending order.
What This Tests
Relational joins between parent and child tables
Deriving new metrics before grouping
Using aggregate functions with group clauses
Ordering results by calculated fields
Common Patterns
Inner Join
Aggregation
Sort
Collapse
Hint
What Interviewers May Ask Next
Accepted
7
/7
Acceptance Rate
100.0%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-