dbTalk Databases Forums  

determine there are duplicate rows?

comp.databases.olap comp.databases.olap


Discuss determine there are duplicate rows? in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nitin
 
Posts: n/a

Default determine there are duplicate rows? - 09-07-2006 , 02:58 PM






Hello Guys
I have a problem
There are 4 columns in a table(c1,c2,c3,c4)..c1 and c2 being the
keys.How will you determine there are duplicate rows?

It has to be done in Pl/SQL.
I am not sure how to do it. Is there a particular command to do it !
HElp me please
Thanks
Nitin


Reply With Quote
  #2  
Old   
Free Data Advise
 
Posts: n/a

Default Re: determine there are duplicate rows? - 09-07-2006 , 04:50 PM






Quote:
Hello Guys
I have a problem
There are 4 columns in a table(c1,c2,c3,c4)..c1 and c2
being the keys.How will you determine there are duplicate
rows?
It has to be done in Pl/SQL.
I am not sure how to do it. Is there a particular command
to do it ! HElp me please
Thanks
Nitin

Create the PK constraint and let the database handle it.


Reply With Quote
  #3  
Old   
Faisal
 
Posts: n/a

Default Re: determine there are duplicate rows? - 09-08-2006 , 09:11 AM




Free Data Advise wrote:
Quote:
Hello Guys
I have a problem
There are 4 columns in a table(c1,c2,c3,c4)..c1 and c2
being the keys.How will you determine there are duplicate
rows?
It has to be done in Pl/SQL.
I am not sure how to do it. Is there a particular command
to do it ! HElp me please
Thanks
Nitin

Create the PK constraint and let the database handle it.
--------------------------------------------------------------------------------------------------
Below is the query to identify duplicates.
Select feild1(the field you have duplicate) from table1
Group by field1 (same field)
Having count(*) > 1

I think so u want to identify duplicte records the above will work.

Cheers



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.