- 1

How to i make an average in WHERE

SELECT * FROM Apartments WHERE price > 750 AND status = 'Not rented' Order By price ASC

30th Aug 2021, 4:39 PM
Manfred h
2 ответов
+ 2
Perhaps the AVG() function helps SELECT AVG(price) FROM Apartments WHERE price > 750 AND status = 'Not rented' I'm not really sure what kind of result you wanted, but this only calculates the average of the price, it'll only return a row
30th Aug 2021, 6:20 PM
Tim
Tim - avatar
0
This appears to be a challenge. If you need help, please share the challenge and your attempt
30th Aug 2021, 5:40 PM
Brain & Bones
Brain & Bones - avatar