Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Duplicated Row Queries
well,
Consider that you have a table like
create table MyTab(
name varchar2(6)
address varchar2(10)
);
insert into MyTab values('You','There'); insert into MyTab values('Me','Here'); insert into MyTab values('Me','Here');
select a.name, a.address from MyTab a, MyTab b
where a.name=b.name and
a.address=b.address and
a.rowid<>b.rowid
The above code will only select records which their name and address are the same.
You could use this logic for almost any table.
Tom
Niels Lippke <c0032019_at_tu-bs.de> wrote in message news:Pine.HPX.4.10.10002291110410.3495-100000_at_rznb1.rz.tu-bs.de...
Hi,
I need to find these rows in my table, that
appear more than one time. But I donĀ“t know how
to construct a SQL-Query that returns
these rows.
Anyone can help?
Thank you in advance,
Niels