Re: ideas to use ora hash
- From: "Glenn Santa Cruz" <glenn.santacruz@xxxxxxxxx>
- To: "Juan Carlos Reyes Pacheco" <juancarlosreyesp@xxxxxxxxx>
- Date: Wed, 22 Mar 2006 19:44:22 -0600
create table t1 (x int);
insert into t1select rownum from all_objects where rownum <= 10;
insert into t1 select * from t1; -- t1 now has "duplicate" rows:
1,1,2,2,3,3, ...
select * from t1 minus select 15 from dual; -- t1 minus a non-existent t1 value
Run this. You'll see that the minus on t1 (regardless of the set
you're "subtracting") will remove duplicate rows from t1. That's what
I meant by saying "be careful with minus". You might want this
behavior, or you might not -- it's entirely up to you to decide what
you consider "differences" between two tables (whether the existence
of extra rows in one table qualifies as a difference).
Glenn
On 3/22/06, Juan Carlos Reyes Pacheco <juancarlosreyesp@xxxxxxxxx> wrote:
> Thanks Glen, but I didn't got the idea could you give an example :) please.
>
--
http://www.freelists.org/webpage/oracle-l
- References:
- ideas to use ora hash
- From: Juan Carlos Reyes Pacheco
- Re: ideas to use ora hash
- From: Jared Still
- Re: ideas to use ora hash
- From: Dennis Williams
- Re: ideas to use ora hash
- From: Jared Still
- Re: ideas to use ora hash
- From: Glenn Santa Cruz
- Re: ideas to use ora hash
- From: Juan Carlos Reyes Pacheco
- Re: ideas to use ora hash
- From: Glenn Santa Cruz
- Re: ideas to use ora hash
- From: Juan Carlos Reyes Pacheco
Other related posts:
- » ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- » Re: ideas to use ora hash
- ideas to use ora hash
- From: Juan Carlos Reyes Pacheco
- Re: ideas to use ora hash
- From: Jared Still
- Re: ideas to use ora hash
- From: Dennis Williams
- Re: ideas to use ora hash
- From: Jared Still
- Re: ideas to use ora hash
- From: Glenn Santa Cruz
- Re: ideas to use ora hash
- From: Juan Carlos Reyes Pacheco
- Re: ideas to use ora hash
- From: Glenn Santa Cruz
- Re: ideas to use ora hash
- From: Juan Carlos Reyes Pacheco