SELECT ROUND(SUM(LAT_N), 4)
FROM STATION
WHERE LAT_N BETWEEN 38.7880 AND 137.2345
Python
๋ณต์ฌ
SELECT ROUND(SUM(LAT_N), 4)
FROM STATION
WHERE LAT_N > 38.7880 AND LAT_N < 137.2345
# ์๋ฐํ๊ฒ๋ ์๋๊ฐ ๋ง๋ ๊ฒ ๊ฐ๋ค
Python
๋ณต์ฌ
๋ ๋ค ์ ๋ต
BETWEEN a AND b
a์ b๋ผ๋ ๋ฒ์๋ฅผ ์ง์ ํ์ฌ a~b ์ฌ์ด์ ๊ฐ์ ๊ฐ์ง๋ ๋ฐ์ดํฐ๋ฅผ ์ถ๋ ฅํ๋ค. ์ด๋ a์ b์ ๊ฐ์ ๊ฐ์ง๋ ๋ฐ์ดํฐ๋ค๋ ํฌํจํ๋ค.
mysql> SELECT SAL
-> FROM EMP
-> WHERE SAL BETWEEN 1500 AND 3000
-> ORDER BY SAL ASC;
Plain Text
๋ณต์ฌ