Management & CommerceHardBusiness analyst · SQL test
Table r(region, rev) has N 200, S 300, E 500. What does ROUND(100.0 * rev / SUM(rev) OVER (), 1) return for region S?
- A. 30.0
- B. 100.0
- C. 60.0
- D. 33.3
Correct answer: A. 30.0
SUM(rev) OVER () with an empty window is the grand total over all rows (1,000), repeated on every row, so S's share is 300/1,000 = 30%. Unlike GROUP BY, the window keeps every row. 33.3 would be a simple one-in-three share.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- A January cohort of 1,000 sign-ups has 600 active users in month 1 and 450 in month 2. An analyst reports 'month-2 retention of 75%'. What…
- A retailer buys a seasonal item at ₹60 and sells it at ₹100; unsold units are cleared at ₹20. Each unit of unmet demand also costs an…
- A machine runs batches of 100 units at 1 minute per unit. A SMED project cuts the changeover from 60 to 20 minutes, and the batch size is…
- A single-server help desk (M/M/1) receives 8 requests an hour and serves 10 an hour. If the server's speed is doubled to 20 an hour, what…
- A contact centre receives 120 calls an hour, and calls last 3 minutes on average. What is the offered traffic load in Erlangs, and what…
- Demand grows by exactly 10 units every period. Simple exponential smoothing with α = 0.2 has been used for a long time. Once things…