출처: https://astrocosmos.tistory.com/202 [ASTROCOSMOS:티스토리] SQL JOIN] 있었는데요 없었습니다 :: 하나둘셋넷
728x90

SQL JOIN] 있었는데요 없었습니다

-- 코드를 입력하세요
SELECT I.ANIMAL_ID, I.NAME
    FROM ANIMAL_INS I
    INNER JOIN(
        SELECT ANIMAL_ID,DATETIME
        FROM ANIMAL_OUTS
    ) AS O ON I.ANIMAL_ID = O.ANIMAL_ID
    WHERE I.DATETIME > O.DATETIME
    ORDER BY I.DATETIME
728x90

+ Recent posts