SUMMARY
Query works on a 1 Mil row table but gives above error on 10 mil. row table.
QUERY
___________________________________________________________
DELETE
FROM [1]
WHERE (Name = ANY
(SELECT Name
FROM [1]
GROUP BY Name
HAVING (COUNT(Name) > 100)))
___________________________________________________________
WIRED PART
Replace DELETE with SELECT * or SELECT Phone or SELECT Name - and it works!
But try SELECT COUNT(*) as expr1 or COUNT (Phone)as expr1 and above error pops up again.
ABOUT
1) Table has Name-Address-Phone data, all varchar 255.
2) INDEXED on Name and State
3) Queries executed through Management Console, so there is NO APPLICATION CONNECTION
4) Environment: SQL Enterprise 2000 on Windows XP Pro
5) Hardware: 4 GB Ram on Intel Core 2 Duo CPU - should be enough!
Thanks for reading!
Query works on a 1 Mil row table but gives above error on 10 mil. row table.
QUERY
___________________________________________________________
DELETE
FROM [1]
WHERE (Name = ANY
(SELECT Name
FROM [1]
GROUP BY Name
HAVING (COUNT(Name) > 100)))
___________________________________________________________
WIRED PART
Replace DELETE with SELECT * or SELECT Phone or SELECT Name - and it works!
But try SELECT COUNT(*) as expr1 or COUNT (Phone)as expr1 and above error pops up again.
ABOUT
1) Table has Name-Address-Phone data, all varchar 255.
2) INDEXED on Name and State
3) Queries executed through Management Console, so there is NO APPLICATION CONNECTION
4) Environment: SQL Enterprise 2000 on Windows XP Pro
5) Hardware: 4 GB Ram on Intel Core 2 Duo CPU - should be enough!
Thanks for reading!