Last active
August 29, 2015 14:20
-
-
Save FembotDBA/8b1c9a66402da609983c to your computer and use it in GitHub Desktop.
Generic Query Not SARGable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.column1 | |
, a.column2 | |
, a.column3 | |
, a.timePeriod | |
, a.column5 | |
FROM schema.tablea a | |
LEFT JOIN schema.tableb AS b ON a.column2 = b.column1 | |
LEFT JOIN schema.tablec AS c ON b.column2 = c.column1 | |
WHERE CONVERT(VARCHAR(8),a.TimePeriod,112) >= @DateParameter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment