I have some queries that look something like this.
SELECT a, b, c, d.....
FROM table1, table2
WHERE a = 1
AND b in (SELECT x
FROM table3
WHERE x = i)
OR b in (SELECT y
FROM table4
WHERE y = j
AND k in (SELECT x
FROM table5
WHERE z = c))
In version 7 these queries where executing sub 1 second in SQL Server 2000 they are taking 30 seconds +.
Any ideas?
John
SELECT a, b, c, d.....
FROM table1, table2
WHERE a = 1
AND b in (SELECT x
FROM table3
WHERE x = i)
OR b in (SELECT y
FROM table4
WHERE y = j
AND k in (SELECT x
FROM table5
WHERE z = c))
In version 7 these queries where executing sub 1 second in SQL Server 2000 they are taking 30 seconds +.
Any ideas?
John