///
Search
๐ŸŽƒ

Weather Observation Station 13

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
๋ณต์‚ฌ