+ 1
select avg(price) from apartments where status = 'Not rented' and ... https://code.sololearn.com/cYsGY4y3pD71
15th Aug 2022, 9:43 PM
SoloProg
SoloProg - avatar
+ 1
select price avg(price) won't work, try this instead select avg(price) from apartments and status = 'Not rented'
15th Aug 2022, 3:16 PM
Apollo-Roboto
Apollo-Roboto - avatar
+ 1
select * from Apartments where price > (select avg(price) from Apartments) and status = 'Not rented'
16th Aug 2022, 4:35 PM
SAID ZGHARI