๐Ÿ’ซ ๋ฌธ์ œ


ย 

๐Ÿ’ซ CODE

SELECT NAME
FROM ANIMAL_INS
WHERE DATETIME = (SELECT MIN(DATETIME) FROM ANIMAL_INS);

ย 

๐Ÿ’ซ ํ’€์ด ์กฐ๊ฑด

1. ๊ฐ€์žฅ ๋จผ์ € ๋“ค์–ด์˜จ ๋™๋ฌผ์˜ ์ด๋ฆ„์„ ์กฐํšŒ

ย 

๐Ÿ’ซ ํ’€์ด

1. SELECT MIN(DATETIME) FROM ANIMAL_INS
  • MIN()ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ€์žฅ ์ž‘์€ ๋ณดํ˜ธ ์‹œ์ž‘์ผ(DATETIME) ์กฐํšŒ
2. WHERE DATETIME = (SELECT MIN(DATETIME) FROM ANIMAL_INS)
  • ์กฐํšŒํ•œ ๊ฐ€์žฅ ์ž‘์€ ๋ณดํ˜ธ ์‹œ์ž‘์ผ(DATETIME) ๊ณผ ๊ฐ™์€ ๋™๋ฌผ ์ด๋ฆ„(NAME) ์กฐํšŒ

By Dozzing

๋‹ต๊ธ€ ๋‚จ๊ธฐ๊ธฐ

์ด๋ฉ”์ผ ์ฃผ์†Œ๋Š” ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ํ•„๋“œ๋Š” *๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค