christrinder
10-23-2003, 09:21 AM
Hi, I'm using a Stored Proc to build the XML that I then bind to the MS TreeView Server Control. The whole process is quite long-winded so I want to make it as efficient as possible.
PROBLEM: I need to select only those records for which the ID appears in another table. What I want to know is which is the most efficient of the following options?
OPTION 1: Use an inner join on the other table.
OPTION 2: Use the good old 'WHERE ID IN (SELECT ID FROM...)
Thanks,
Chris
PROBLEM: I need to select only those records for which the ID appears in another table. What I want to know is which is the most efficient of the following options?
OPTION 1: Use an inner join on the other table.
OPTION 2: Use the good old 'WHERE ID IN (SELECT ID FROM...)
Thanks,
Chris