Management & CommerceVery hardBusiness analyst · SQL test
A table has 10 rows with x = 1 to 10. NTILE(4) OVER (ORDER BY x) splits them into quartile buckets. How many rows fall into buckets 1, 2, 3 and 4?
- A. 2, 2, 3, 3
- B. 2.5 each
- C. 3, 2, 3, 2
- D. 3, 3, 2, 2
Correct answer: D. 3, 3, 2, 2
NTILE divides 10 rows into 4 groups as evenly as possible; the 2 leftover rows go to the first groups, so the sizes are 3, 3, 2, 2 (x = 1–3, 4–6, 7–8, 9–10).
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- sal(name, dept, s) has rows: dept X – A 90, B 90, C 80, D 70; dept Y – E 60, F 50, G 50, H 40. How many rows have DENSERANK() OVER…
- An A/B test must detect a lift in conversion from 10% to 12% with α = 0.05 (two-sided) and 80% power. Using n ≈ (1.96 + 0.84)² × [p₁(1 −…
- Jobs arrive at an M/M/1 workstation at 10 per hour. Waiting (in the system) costs ₹100 per job per hour, and service capacity costs ₹40…
- Which statement correctly distinguishes the cycle-service level from the fill rate?
- A one-person repair shop treats jobs on a first-come basis. Its owner proposes giving priority to short jobs (shortest processing time…
- An e-commerce firm's monthly data – Jan: 10,000 orders, revenue ₹50 lakh, marketing spend ₹10 lakh, 2,000 new customers; Feb: 12,000…