Jul 3, 2002 #1 almegaAkil MIS Joined Jun 27, 2002 Messages 47 Location TT which keyword can i use to create a query for removing duplicate rows
Jul 3, 2002 #2 crystalized Programmer Joined Jul 10, 2000 Messages 390 Location CA distinct Crystal crystalized_s@yahoo.com -------------------------------------------------- Experience is one thing you can't get for nothing. -Oscar Wilde Upvote 0 Downvote
distinct Crystal crystalized_s@yahoo.com -------------------------------------------------- Experience is one thing you can't get for nothing. -Oscar Wilde
Jul 4, 2002 Thread starter #3 almegaAkil MIS Joined Jun 27, 2002 Messages 47 Location TT i'll try try that but i was using a select query like this one select [date], [location] from [call info] group by [date] having (count([date])>1) but that didn't work as it should have.... i even tried a delete query i didn't even bother with distinct i thought i wouldn't be able to delete the duplicate rows... Upvote 0 Downvote
i'll try try that but i was using a select query like this one select [date], [location] from [call info] group by [date] having (count([date])>1) but that didn't work as it should have.... i even tried a delete query i didn't even bother with distinct i thought i wouldn't be able to delete the duplicate rows...
Jul 4, 2002 #4 Earth Technical User Joined May 8, 2000 Messages 59 Location AU select [date], count(*) as myCount from [call info] group by [date] having (count(*)>1) Has worked for me before..... but maybe not? Upvote 0 Downvote
select [date], count(*) as myCount from [call info] group by [date] having (count(*)>1) Has worked for me before..... but maybe not?
Jul 4, 2002 #5 tlbroadbent MIS Joined Mar 16, 2001 Messages 9,982 Location US The following will identify the duplicates in the table based on two columns. select [date], [location] from [call info] group by [date], [location] having count(*)>1 Terry L. Broadbent - DBA Computing Links: http://tlbroadbent.home.attbi.com/prog.htm faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions. Upvote 0 Downvote
The following will identify the duplicates in the table based on two columns. select [date], [location] from [call info] group by [date], [location] having count(*)>1 Terry L. Broadbent - DBA Computing Links: http://tlbroadbent.home.attbi.com/prog.htm faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.