Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fine tuning a SPROC
Message
From
21/06/2007 14:03:41
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01234693
Message ID:
01234816
Views:
21
>>>>I want my results to have a record for every day, which is why I put Table1 first. Plus I don't want to do an inner join because there are plenty of records in Table1 that won't have a corresponding value in Table2, and I still want to show them.
>>>>
>>>I understand, but still may you try two inner joins (one with table1 to table2) and another with (table2 to table1) and see, if there is any difference? Perhaps there would not be one.
>>
>>You have me thoroughly confused... :-)
>
>I'm just curious to see the results, I guess, there would not be any difference, but I don't know till you try. Just try two simple queries in QA with your tables.

I replaced my LEFT OUTER JOIN with INNER JOIN, and the query took only 8 seconds this time.
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform