Very disappointing, but some how not able to crack why I am getting this error?
SELECT 1
FROM dbo.[Call] C WITH (nolock)
OUTER APPLY
(
SELECT TOP 1 LastModifiedDateTime,LastModifiedUser,Note
FROM dbo.Note
WHERE dbo.Note.CallID = C.Call
ORDER BY dbo.Note.LastModifiedDateTime DESC
) LatestNote
Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'OUTER'.Msg 170, Level 15, State 1, Line 9
Line 9: Incorrect syntax near 'LatestNote'.