BUG: Poor Performance with Inner Join with Multiple LIKE Clauses Using VariablesID: Q225093
|
An inner join between two tables with multiple LIKE clauses produces a poor query plan if the LIKE clauses use variables instead of string literals.
Microsoft has confirmed this to be a problem in SQL Server version 7.0.
The following conditions must be met to encounter this bug:
SELECT p.first_name
FROM person p
INNER JOIN customer c ON p.person_id = c.person_id
WHERE p.last_name LIKE @last_name AND
p.first_name LIKE @first_name
Additional query words:
Keywords : SSrvTran_SQL kbbug7.00
Version : winnt:7.0
Platform : winnt
Issue type : kbbug
Last Reviewed: May 7, 1999