Management & CommerceHardBusiness analyst · SQL test
Table s(id, amt) has amounts 100, 250, 500, 300 and 250. How many rows satisfy WHERE amt BETWEEN 250 AND 500?
- A. 1
- B. 3
- C. 2
- D. 4
Correct answer: D. 4
BETWEEN is inclusive at both ends, so 250, 500, 300 and the second 250 qualify: 4 rows. Treating the bounds as exclusive gives 1 (only 300), and forgetting the duplicate 250 gives 3.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- Table s(id, amt, status) has (1, 100, paid), (2, 250, due), (3, 500, paid), (4, 1000, refund), (5, 250, paid). What does SELECT 1.0…
- A subscription app earns ₹500 a month per user at a 60% gross margin, and 4% of users churn each month. Acquiring a user costs ₹2,500…
- A customer first clicked a social-media ad, later a search ad, and finally an email link before buying for ₹3,000. Under last-touch…
- For a commodity component, buyers will consider a supplier only if its quality meets the industry standard, but they choose among such…
- On the product–process matrix, which pairing is most typical?
- Demand requires a takt time of 45 seconds, but the bottleneck station's work content is 50 seconds and cannot be split. What is the…