Answers for "how to user id to show in from date to upto date in mssql server"

SQL
0

how to user id to show in from date to upto date in mssql server

-- [=====[ Option 1 ]=====]
SELECT	TOP 1 
        TransID, [Date] 
FROM    #RNT1 
ORDER BY [Date] DESC, 
         TransID DESC

-- [=====[ Option 2 ]=====]
SELECT TOP 1 
       TransID, [Date]
FROM   #RNT1
WHERE  [Date]= (SELECT Max([Date]) FROM #RNT1)
ORDER BY TransID DESC
Posted by: Guest on November-17-2020

Code answers related to "how to user id to show in from date to upto date in mssql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language