Viewing 15 posts - 361 through 375 (of 1,229 total)
Hello and welcome to ssc.
Your second INNER JOIN condition references the table alias of the first. This should work, assuming suitable values in your data:
SELECT
u1.Name AS first,
u2.Name AS...
January 26, 2013 at 12:21 am
saxena200 (1/25/2013)
PFA, Actual plan
Sorted - it's running those results unaggregated into the table variable which is costing so much. I'd guess you might get a 20-fold lift by aggregating each...
January 25, 2013 at 12:09 pm
Lowell (1/25/2013)
January 25, 2013 at 11:52 am
Sql Student-446896 (1/25/2013)
I have a beginning Year and a End year and i have to compute/create a string based on the given years.
Example:
Input: BegYr = 2013 and EndYr = 2015
Output:...
January 25, 2013 at 11:16 am
Lynn Pettis (1/24/2013)
r_slot (1/24/2013)
I am using your code of course.
Good. Now, if you would please post the code you are are using, not just refer me to my old...
January 25, 2013 at 11:03 am
SQLRNNR (1/24/2013)
ChrisM@home (1/24/2013)
SQLRNNR (1/24/2013)
john.arnott (1/24/2013)
January 24, 2013 at 3:49 pm
How about EXCEPT?
SELECT 'TableA', *
FROM (
SELECT * FROM TableA
EXCEPT
SELECT * FROM TableB
) a
UNION ALL
SELECT 'TableB', *
FROM (
SELECT * FROM TableB
EXCEPT
SELECT * FROM TableA
) a
January 24, 2013 at 3:47 pm
SQLRNNR (1/24/2013)
john.arnott (1/24/2013)
January 24, 2013 at 3:42 pm
r_slot (1/24/2013)
I am using your code of course.
I haven't posted it yet! :w00t:
January 24, 2013 at 3:20 pm
Abu Dina (1/23/2013)
Simple solution....
This is another addition to the various phonetic algorithm implementations I have. Always hoping for better...
January 24, 2013 at 3:19 pm
Hack your query down to the minimum which still exhibits the strange behaviour you are observing. If you haven't figured it out by the end of the exercise, code up...
January 24, 2013 at 3:02 pm
Try searching for dwainc's article CROSS APPLY VALUES, it's the simplest solution for this. If you can't find it, post up ddl and dml for your 50-row table. The link...
January 24, 2013 at 11:56 am
Abu Dina (1/23/2013)
Thanks for the thread. I shall go and have a thorough read in a mo.
I'm really grateful you brought my attention to iTVF Last...
January 23, 2013 at 2:05 pm
It looks like you are using a query designer for this, and worryingly, it looks like the result has been achieved by accident rather than by design. Here's the full...
January 23, 2013 at 1:30 pm
How are you doing, Abu Dina?
As luck would have it, one or two of us have been experimenting with exactly this requirement here on this thread, which will continue to...
January 23, 2013 at 1:00 pm
Viewing 15 posts - 361 through 375 (of 1,229 total)