첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
유용한 소스 코드가 있으면 icodebroker@naver.com으로 보내주시면 감사합니다.
블로그 자료는 자유롭게 사용하세요.

728x90
반응형
SELECT
    ROW_NUMBER() OVER (ORDER BY A.DateTimeWritten DESC, A.DateTimeCreated DESC) AS RowNumber
   ,A.ID              AS ID
   ,A.DateTimeWritten AS DateTimeWritten
   ,A.DateTimeCreated AS DateTimeCreated
   ,A.[FileName]      AS [FileName]
   ,A.FileExtension   AS FileExtension
FROM
(
    SELECT
        A.ID              AS ID
       ,A.DateTimeWritten AS DateTimeWritten
       ,A.DateTimeCreated AS DateTimeCreated
       ,A.[FileName]      AS [FileName]
       ,A.FileExtension   AS FileExtension
    FROM  PhotoBook AS A WITH(NOLOCK)
    WHERE A.MenuID       = 44
    AND   A.CategoryName = '자연'
) AS A;
728x90
반응형
Posted by 사용자 icodebroker

댓글을 달아 주세요