July 13, 2012 at 8:21 am
I just got this error:
Msg 102, Level 15, State 1, Line 24
Incorrect syntax near ')'.
July 13, 2012 at 8:26 am
doh, got to add a name for the derived table,
just add AS derived1 to the last line after the )
July 13, 2012 at 8:31 am
Sorry just got back from a meeting - Looking much better now 🙂
==========================================================================================================================
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe
July 13, 2012 at 8:32 am
Thank you, thank you so much! I did wonder if to put as **** at the end, but wasn't sure.
This has helped me alot, really appreciate it
July 13, 2012 at 8:34 am
If you run your original query, against the new query and export the actual query plans, I would be interested to see the differences, especially around the SARGable parts with using the date parts instead of the full dates.
Viewing 5 posts - 16 through 19 (of 19 total)
You must be logged in to reply to this topic. Login to reply