Viewing 11 posts - 16 through 26 (of 26 total)
Perhaps "first" means the order in which the data was inserted into the table. It's like "First come, first served". This may not be the perfect SQL definition...
September 20, 2011 at 1:22 pm
DECLARE @TABLE1 as TABLE (ROWSEQ INT IDENTITY, ID INT, SUBID INT, COMPLETE INT, LOCATION CHAR(20))
INSERT INTO @TABLE1
SELECT 2000, 0, 0, 'GEORGIA' UNION ALL
SELECT 2000, 0, 0, 'TEXAS' UNION ALL...
September 20, 2011 at 1:11 pm
UPDATE MyTable set MyField = 'MyField was NULL' where MyField IS NULL
UPDATE MyTable set MyField = 'MyField was not NULL' where MyField IS NOT NULL
September 20, 2011 at 12:31 pm
I don't claim to be an expert in either SQL or Excel but I tested the method shown above with the original data values given and that method does not...
September 12, 2011 at 6:09 pm
WayneS (10/23/2010)
gmrose (10/23/2010)
Out of curiosity, how many records are you processing? And did you try out the script that I posted?
Wayne
Thank you (and all of the others) for your...
October 28, 2010 at 5:05 pm
Out of curiosity, how many records are you processing? And did you try out the script that I posted?
Wayne
Thank you (and all of the others) for your suggestions. ...
October 23, 2010 at 3:47 pm
Thank you again to Lutz and Wayne. I updated my script per Lutz' suggestions to use table #tmpChecks instead of table variable @tmpChecks. I made some minor adjustments...
October 21, 2010 at 5:26 pm
LutzM (10/21/2010)How many rows does your table have? And what indexes?
Please post complete DDL for the table in question.
Edit: the actual execution plan would be great, too...
This table currently has...
October 21, 2010 at 10:22 am
After I finish reading the article, I will need to build a new statement using its suggestions. The one that I built based on Lutz's solution has been running...
October 20, 2010 at 6:24 pm
Thank you both for your help, Craig for the interesting article which I have started reading, and Lutz for the solution I needed.
gmrose
October 20, 2010 at 4:52 pm
Viewing 11 posts - 16 through 26 (of 26 total)