Viewing 15 posts - 44,656 through 44,670 (of 59,101 total)
sumit-saini (2/16/2009)
Thanks for the code, but i will be test the code tommorrow @ my work and i will be able to tell you the performance of this logic...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:55 pm
Sorry for the late reply. My answer would be "Nope... I'll use a temp table"... just wanted folks to know that it could actually be done.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:45 pm
KT8177 (3/11/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:39 pm
Heh... nope... see above where I posted...
SELECT ID
FROM #Test
WHERE Countries IN ('IN','AU')
GROUP BY ID
HAVING COUNT(*) = 2
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:33 pm
Heh... thanks for posting your solution. I guess that's why I don't like DTS or SSIS... T-SQL makes it so much simpler...
DECLARE @SomeDate VARCHAR(8)
SET @SomeDate...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:30 pm
That was the first question... now, let's see if the final question about this comes up. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:25 pm
Did that answer your questions, Karthik?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 7:22 pm
scorpio_zz19 (3/11/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 4:29 pm
Like I said in my post above, Mahesh... be real careful. One big group of AccountNbr's and that triangular join you made will crush the server.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2009 at 12:00 am
Just remember... you must include the columns in the GROUP BY that you intend to join on. If you return a heck of a lot of rows in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2009 at 11:57 pm
http://www.sqlservercentral.com/Forums/Topic672929-145-1.aspx
Beware the easy way... it's a trap... see my post on the thread above.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2009 at 11:46 pm
Ok... first of all, take a look at the following link to see why a thing called Triangular Joins are bad... real bad...
http://www.sqlservercentral.com/articles/T-SQL/61539/
I'd post the link to the "running totals"...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2009 at 10:33 pm
Good enough... gimme a few minutes to hammer it out...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2009 at 9:42 pm
Oh yeah... almost forgot... I'd cancel that meeting...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2009 at 9:40 pm
Tony (3/10/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2009 at 9:39 pm
Viewing 15 posts - 44,656 through 44,670 (of 59,101 total)