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

¹ÎºÀ±â   
   Á¶È¸ 5271   Ãßõ 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 2713/5695
2015-12   1611359   ¹é¸Þ°¡
2014-05   5074307   Á¤ÀºÁØ1
2006-02   5273   ¹Ú±âµÎ
2012-08   5272   slowsteady
2013-07   5272   ¹äÇѳ¢
2018-02   5272   ³ª¶ó¶ß
2005-11   5272   Â÷Àç±Ù
2007-02   5272   ¹ÎºÀ±â
2007-09   5272   ÇÏâ¼®
2014-04   5272   ½É¿ìö
2019-10   5272   ¸®¸®µ¿
2015-09   5272   ǪÇÏÈ÷
2011-12   5272   ±èÈ¿¼ö
2006-09   5272   ±èÅ¿ì
2013-11   5272   ÀÌÁöÆ÷Åä
2017-11   5272   À嵿°Ç2014
2005-09   5272   ¹Ú±¤´ö
2020-06   5272   isaiah
2008-07   5272   À±È£¿ë
2009-01   5272   À±Ä¡¿­
2006-09   5272   ±èÀ¶±â
2005-09   5272   ¹®ÁÖÇö