Make query SQL Server friendly