Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create Table From a Having Count Select

BlahBlahApr 8 2010 — edited Apr 8 2010
Hello Folks, any ideas here, I need to create a table using the below 'Select' as the criteria.

I have the following table and its has duplicate records, identified by double Unique_seq. I want to create a table of these else where, then delete them from schema.tablename.

Schmea.tablename
-------------------------
field1
field2
field3
field4
Unique_Seq


SELECT Unique_Seq,COUNT(Unique_Seq)
FROM Schema.Tablename
GROUP BY Unique_Seq
HAVING ( COUNT(Unique_Seq) > 1

I want to create the table using all the fields from schema.tablename

Thanks
This post has been answered by Prazy on Apr 8 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2010
Added on Apr 8 2010
10 comments
1,126 views