Viewing 15 posts - 7,276 through 7,290 (of 10,144 total)
Why are you pulling results from your two source tables into table variables before using them in your final query? This is a shedload of extra code (trivial) and could...
September 28, 2010 at 6:44 am
chris.king (9/28/2010)
Chris Morris-439714 (9/28/2010)
September 28, 2010 at 6:13 am
If the seven foreign key fields from any row of Table A reference seven different rows in Table B, then yes you will need to join Table B seven times...
September 28, 2010 at 4:36 am
Jaya, I reckon the most cost-effective way to approach your problem at this point in time is to see how each of your queries performs when you sub in the...
September 28, 2010 at 2:59 am
Alvin Ramard (9/27/2010)
WayneS (9/27/2010)
jcrawf02 (9/27/2010)
I of course immediately subscribed to your feedOkay, stupid question time. How do you subscribe to a blog feed? Are any special programs required?
Since you said...
September 28, 2010 at 2:36 am
Brandie Tarvin (9/27/2010)
Kit G (9/27/2010)
September 28, 2010 at 2:28 am
Brian McGee-355525 (9/27/2010)
MY_TABLE_2 does not have any rows with OTHER_FIELD = 'VALUE'. ...
Check that this is indeed the case. Using 2k8R1, the outer query returns 20 rows as if...
September 27, 2010 at 9:23 am
krishnakumar-293737 (9/27/2010)
Where THE_ID = (Select THE_ID from Database2..MY_TABLE_2 Where OTHER_FIELD = 'VALUE')
Order By MY_COL desc
Now....the subquery is invalid, there is no column THE_ID on...
September 27, 2010 at 9:17 am
steveb. (9/27/2010)
It definetly throws an...
September 27, 2010 at 8:25 am
Brandie Tarvin (9/27/2010)
Also, you forgot to remove the # sign from your table name. Since he's a newbie...
September 27, 2010 at 8:08 am
hugh.hemington (9/26/2010)
September 27, 2010 at 7:19 am
Is there a CTE in here anywhere?
If there is, then this article is probably worth a read:
Edit: found the link.
September 27, 2010 at 6:43 am
And another one:
;WITH OrderedPartitionedData AS
(SELECT RowID = ROW_NUMBER() OVER (PARTITION BY OrderID ORDER BY EventDateTime), *
FROM #DataTest)
SELECT dy1.venue, dy1.address1, dy1.city, dy1.[state], dy1.zip,
EDate1 = CONVERT(VARCHAR, dy1.eventdatetime, 101),
Edate2...
September 27, 2010 at 6:42 am
Viewing 15 posts - 7,276 through 7,290 (of 10,144 total)