Re: Which inner join syntax is more efficent?
From: Hassan (fatima_ja_at_hotmail.com)
Date: 09/11/04
- Next message: dcsi: "Tried that too..."
- Previous message: olduncleamos_at_yahoo.com: "Which inner join syntax is more efficent?"
- In reply to: olduncleamos_at_yahoo.com: "Which inner join syntax is more efficent?"
- Next in thread: Adam Machanic: "Re: Which inner join syntax is more efficent?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 11 Sep 2004 14:59:44 -0700
I would look at the execution plan generated by both. I think they would
generate the same plan but i could be wrong
<olduncleamos@yahoo.com> wrote in message
news:83d5f6bf.0409111333.608cdf2b@posting.google.com...
> Hello all.
>
> Assuming both TableA and TableB are roughly the same size with index
> on COL_1 on both table. Which syntax will be more efficient?
>
> SELECT A.Col_1, B.Col_2 FROM
> TableA AS A INNER JOIN TableB AS B ON A.Col_1 = B.Col_1
> WHERE A.Col_1 = @Some_Value
>
> OR
>
> SELECT A.Col_1, B.Col_2 FROM
> TableA AS A INNER JOIN TableB AS B ON A.Col_1 = B.Col_1 AND A.Col_1 =
> @Some_Value
>
> Any help will be greatly appreciated.
- Next message: dcsi: "Tried that too..."
- Previous message: olduncleamos_at_yahoo.com: "Which inner join syntax is more efficent?"
- In reply to: olduncleamos_at_yahoo.com: "Which inner join syntax is more efficent?"
- Next in thread: Adam Machanic: "Re: Which inner join syntax is more efficent?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|