728x90
1. ๋ฌธ์
Query the average population for all cities in CITY, rounded down to the nearest integer.
-> rounded down : ๋ฒ๋ฆผ
2. ๋ดํ์ด
CEIL() : ์ฌ๋ฆผ
ex) SELECT CEIL(5.5) => 6
FLOOR() : ๋ด๋ฆผ
ex) SELECT FLOOR(5.5) => 5
ROUND() : ๋ฐ์ฌ๋ฆผ
ex) ROUND(5.556901, 4) => 5.5569
SELECT FLOOR(AVG(POPULATION))
FROM CITY
-> ๋ด๋ฆผ์ ์ํด FLOOR()ํจ์๋ก ๊ฐ์ธ์ค
3. ๊ฒฐ๊ณผ
728x90