01 / 05
Two goes is a nuisance
Say you want "the orders bigger than average". The way you write now, that takes two queries.
One to get the average, then a second where you type that number in by hand. Every time the number moves you rewrite it, and if you copy it down wrong the result goes wrong with it.
SELECT AVG(quantity) FROM orders;Result
3