The execution of this query requires the APPLY operator, which is not supported in versions of SQL Server earlier than SQL ...