Re: another question
From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 04/13/04
- Next message: Rhonda Fischer: "Re: => Trigger to split Trailer Loads"
- Previous message: Hugo Kornelis: "Re: Need help formatting Float data type for leading zeros"
- In reply to: ashleyT: "another question"
- Next in thread: ashleyT: "Re: another question"
- Reply: ashleyT: "Re: another question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 19:52:05 +0530
Try query as follows:
delete a
from #cartype a join
(select manufacturer, datemade, count(*) cnt
from #cartype
group by manufacturer, datemade
having count(*) > 1) b on a.manufacturer = b.manufacturer and
a.datemade = b.datemade and b.cnt <>
(select count(*)
from #cartype x
group by manufacturer
having x.manufacturer = b.manufacturer)
--
Vishal Parkar
vgparkar@yahoo.co.in
- Next message: Rhonda Fischer: "Re: => Trigger to split Trailer Loads"
- Previous message: Hugo Kornelis: "Re: Need help formatting Float data type for leading zeros"
- In reply to: ashleyT: "another question"
- Next in thread: ashleyT: "Re: another question"
- Reply: ashleyT: "Re: another question"
- Messages sorted by: [ date ] [ thread ]