Answers for "sql cross apply vs join"

SQL
0

sql cross apply vs join

SELECT M.ID,M.NAME,D.PERIOD,D.QTY
FROM MASTER M
INNER JOIN
(
    SELECT TOP 2 ID, PERIOD,QTY 
    FROM DETAILS D      
    ORDER BY CAST(PERIOD AS DATE)DESC
)D
ON M.ID=D.ID
Posted by: Guest on April-20-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language