多表关联去重查询
1
2
3
|
select * from ( select a.*, rownum row_num from REP_DATA_01 a) x where x.row_num in ( select min (rownum) from REP_DATA_02 t group by organ_id ) |
单表去重
查询重复数据(这句SQL只能显示非重复数据)
select distinct organ_id from REP_DATA_01 ;