Write a query to output the apartments whose prices are greater than the average and are also not rented, sorted by the 'Price' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Write a query to output the apartments whose prices are greater than the average and are also not rented, sorted by the 'Price'

I'm finding it difficult to execute this task! Pls I need hint on this

27th Apr 2021, 5:46 PM
Kebiru Idakwo
Kebiru Idakwo - avatar
1 Answer
0
So the secret is in subqueries. You will need to compare the price with the average of price.
28th Apr 2021, 6:08 PM
Kail Galestorm
Kail Galestorm - avatar