0

SQL challenge question: anybody to help ?

I need help on this challenge The question goes like this Write a query to output the apartments whose prices are greater than the average and are also not rented , sorted by price column

15th Nov 2021, 7:36 PM
Basit Salam
Basit Salam - avatar
1 Odpowiedź
0
Here is a code you can use : SELECT apartments from Apartments_table WHERE (price > AVG(price) AND status = "not rented") ORDER BY price ;
15th Nov 2021, 8:23 PM
YAMEOGO Angelo Marion José Kiswendsida 1er Jumeau
YAMEOGO Angelo Marion José Kiswendsida 1er Jumeau - avatar