Viewing 15 posts - 8,131 through 8,145 (of 10,144 total)
Jacco
Assuming there are no gaps in your identity column:
;WITH Results AS (
SELECT pkId, Col1, Col2, Col3, Col4
FROM dbo.tblDemo
WHERE pkId = 1
UNION ALL
SELECT s.pkId,
ISNULL(s.Col1, r.Col1),
ISNULL(s.Col2, r.Col2),
ISNULL(s.Col3, r.Col3),...
February 25, 2010 at 6:39 am
Paul White (2/22/2010)
Chris Morris-439714 (2/22/2010)
February 22, 2010 at 8:31 am
Paul White (2/22/2010)
Chris Morris-439714 (2/22/2010)
:blush: time for more reading, less writing.:laugh: Yeah, right! :laugh:
No, really! And you, Mr White, should write an article on CROSS APPLY. I'm learning tons from...
February 22, 2010 at 7:58 am
GSquared (2/22/2010)
Paul White (2/22/2010)
Is it just me...or are the posted questions getting better?:smooooth:
Paul
Questions seem okay right now. Some of the answers have been abysmal recently. I guess it...
February 22, 2010 at 7:35 am
Grant Fritchey (2/19/2010)
Chris Morris-439714 (2/19/2010)
Grant Fritchey (2/18/2010)
... I don't think I've got some great advantage over others...
SQL Server 2008 Query Performance Tuning Distilled
SQL Server Execution Plans
There's more than one copy...
February 19, 2010 at 4:14 am
Grant Fritchey (2/18/2010)
... I don't think I've got some great advantage over others...
SQL Server 2008 Query Performance Tuning Distilled
SQL Server Execution Plans
There's more than one copy here, and we're not...
February 19, 2010 at 2:18 am
APIJENA (2/18/2010)
as mentioned in the step 2, I want to join, on city, records matched in step1 with those didnt...
February 18, 2010 at 7:21 am
Paul White (2/18/2010)
Chris Morris-439714 (2/18/2010)
Paul White (2/18/2010)
Oh dear, I posted a reply to that identity-order thread before checking here :ermm:
It's a great answer and needed to be said on the...
February 18, 2010 at 4:26 am
Paul White (2/18/2010)
Oh dear, I posted a reply to that identity-order thread before checking here :ermm:
It's a great answer and needed to be said on the thread.
February 18, 2010 at 4:00 am
phumlo1 (2/10/2010)
I have a table-- TableA which could be linked to either TableB or TableC. I want to join either of the latter depending on which one is...
February 10, 2010 at 4:21 am
Alvin Ramard (2/9/2010)
Oh oh. Someone is asking for documentation or white paper for the "command". :w00t:Gus, wipe that smile off you face! 😀
The white paper won't be published...
February 9, 2010 at 9:19 am
Andrew Watson-478275 (2/9/2010)
select datediff(hh,0,'09 feb 2010 12:34:56') returns 965196
and select...
February 9, 2010 at 7:27 am
TheSQLGuru (2/8/2010)
February 8, 2010 at 9:44 am
peter-757102 (2/8/2010)
Chris Morris-439714 (2/8/2010)
peter-757102 (1/23/2009)
Nice work, Peter, but I'm curious - if a CTE doesn't generate any kind of intermediate result, then how might a recursive CTE work? Bear in...
February 8, 2010 at 8:18 am
peter-757102 (1/23/2009)
February 8, 2010 at 7:17 am
Viewing 15 posts - 8,131 through 8,145 (of 10,144 total)