Viewing 15 posts - 16 through 30 (of 41 total)
Duh!!!!
It was the table name alias (the bit in the bold) I was missing!!!!!
Thank you sanmatrix for jogging my memory!
September 14, 2010 at 5:43 am
Just reporting back......
OK, the temp table route runs in less than 2 seconds......an acceptable speed given the amount of data and processing involved (of which I only showed you a...
July 8, 2010 at 2:38 am
mrpolecat (7/7/2010)
July 8, 2010 at 2:12 am
steveb. (7/7/2010)
Also...
July 7, 2010 at 9:39 am
Thanks for all your help.
I've adopted a version of MM's solution, even though he wasn't happy with it!
Performance isn't really an issue for me though, as the code runs as...
June 30, 2010 at 4:37 am
mister.magoo (6/28/2010)
SELECT tool,
(SELECT TOP 1 wos_ordref
...
June 28, 2010 at 8:25 am
mister.magoo (6/28/2010)
SELECT tool AS product, wos_ordref, wos_startdate
FROM @xTOOLS
OUTER APPLY (SELECT TOP 1 wos_ordref,wos_startdate
FROM...
June 28, 2010 at 7:48 am
OK, I've spotted what I did wrong. I've obviously been staring at the code for too long because I've become blind to it!
It was simply that the .LockType was missing...
June 9, 2009 at 9:31 am
I think I've managed to fix this myself. If I add ABS to the code, it obviously removes the sign from the returned value and all seems well.
My new code...
June 3, 2009 at 8:19 am
Hello again,
I've re-done it your way! It just seems more elegant and efficient to add the CAST to the construction of the @cmd variable, rather than parp around converting the...
June 3, 2009 at 2:37 am
Hi David,
Many many thanks for your contribution. It led me to the answer although I still had some problems at first.
To cut a long story short, I converted my integer...
June 3, 2009 at 2:22 am
Sorry!
I wasn't sure which category it fell into.
Lesson learned though!
June 2, 2009 at 9:06 am
Hooray! Easily pleased......me????
August 22, 2008 at 4:15 am
OK, it's the does not equal signs that are the problem.......so........
IF (SELECT COUNT(*) FROM xllrequisitions WHERE [Date Processed] IS NOT NULL
AND CONVERT(CHAR(10),[Date Processed], 103) <= CONVERT(CHAR(10), GETDATE() - 1,...
August 22, 2008 at 4:15 am
Nope....didn't work. broken up onto two lines maybe?
IF (SELECT COUNT(*) FROM xllrequisitions WHERE [Date Processed] IS NOT NULL
AND CONVERT(CHAR(10),[Date Processed], 103) 0
August 22, 2008 at 4:14 am
Viewing 15 posts - 16 through 30 (of 41 total)