getting duplicate records [message #19591] |
Sun, 31 March 2002 01:58 |
susheel
Messages: 1 Registered: March 2002
|
Junior Member |
|
|
i have to get records from 2 tables where there is a repating data in the one colum for eg i need a records from the table where there is same empid in the table.
|
|
|
|
Re: getting duplicate records [message #20365 is a reply to message #19591] |
Fri, 17 May 2002 03:21 |
Nasir
Messages: 8 Registered: February 2002
|
Junior Member |
|
|
To check for multi-column (key) duplicates:
===========================================
select rowid, deptno, dname
from dept outer
where
outer.rowid > (select min(rowid) from dept inner
where inner.deptno||inner.dname=outer.deptno||outer.deptno)
order by deptno;
|
|
|