469,077 Members | 1,424 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,077 developers. It's quick & easy.

delete redundant data

I want to delete the redundant data in a table..Please help me with this.
May 11 '07 #1
1 1287
delete from Hotelimages where ImageID not in (
select MIN(ImageID) as Imageid
from HotelImages
group by URL
having count(*) >=1) as redantantData
May 13 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by gordy | last post: by
4 posts views Thread by Rob Conner | last post: by
6 posts views Thread by Ben | last post: by
reply views Thread by norseman | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.