¿À¶óŬ Äõ¸® SELECT¹®¿¡¼­ ¿ÜºÎ Ä÷³ 2´Ü°è ³»ºÎ ÂüÁ¶°¡ µÇ°ÔÇÒ ¼ø ¾øÀ»±î¿ä?

¹ÎºÀ±â   
   Á¶È¸ 5202   Ãßõ 34    

SELECT (SELECT MAX_TIME
                        FROM (SELECT MAX_TIME
                                         FROM TABLE_B b
                                         WHERE 1=1
                                                   AND DAY = a.DAY
                                         ORDER BY DATE_TIME ASC
                                         ) c
                         WHERE ROWNUM = 1)
 FROM TABLE_A a

À§ÀÇ a.DAYÀ¸·Î ÂüÁ¶ÇÏ´Â ºÎºÐ¿¡¼­ ¿¡·¯°¡ ³ª´Âµ¥¿ä
cÀÇ Á¶°ÇÀ» ¸¸Á·Çϴ ù¹ø° ÁÙÀ» MAX_TIMEÀ¸·Î ¾²°í ½Í±â ¶§¹®¿¡
a.DAY¸¦ ÇÑ´Ü°è À§·Î ¾²°í ½Í¾îµµ ¾µ ¼ö°¡ ¾ø½À´Ï´Ù.

Function, ProcedureÀ¸·Î ÇØ°áÇÒ¼öµµ ÀÖ°ÚÁö¸¸, ´ë·« 1¾ï°ÇÀÌ ³Ñ´Â DATA¶ó ½Ã°£ÀÌ ¸¹ÀÌ °É¸®´Ï
º» Äõ¸®¸¸À¸·Î MAX_TIMEÀ» °¡Á®¿À°í ½Í½À´Ï´Ù.
ÀÌ °æ¿ì ¿¡·¯°¡ ¾È³ª°Ô °¡Á®¿À´Â ¹æ¹ýÀÌ ¾øÀ»±î ¿©Âã½À´Ï´Ù.

¹Ì¸® °¨»çµå¸³´Ï´Ù. ²Ù¹÷
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


QnA
Á¦¸ñPage 2980/5689
2014-05   5010895   Á¤ÀºÁØ1
2015-12   1546559   ¹é¸Þ°¡
2012-07   5201   ½ÂÈÄ´Ï´Ï
2014-11   5201   ¹ÚÁ¾¿ë
2012-01   5201   Æ®·ç
2007-12   5201   ÀÌâ¿ë
2015-03   5201   ·°Å°½ºÆ®¶ó¡¦
2019-08   5202   ºÀ·¡
2016-02   5202   yeondoo
2021-02   5202   ½ÅÀº¿Ö
2007-12   5202   ±è±Ô¿ø
2013-03   5202   ¸Ó¶óÄ«´Âµ¥
2008-11   5202   °í¿µ´ö
2005-12   5202   ¹ÚÁ¾´ë
2007-12   5202   ±èÅÂÇö
2005-12   5202   ¹ÚÀçÈ£
2017-02   5202   Àϱ¹
2005-08   5202   Á¤¹Î±â
2007-11   5202   ±èâÇö
2005-10   5202   ȲÀϱ¸
2016-12   5202   ȲÁø¿ì
2006-10   5202   ÃÖâÇõ