| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Returning DISTINCT rows when SQL *DOES NOT* contain distinct!
Hi Carlos,
I do the same code as you and get different results.
SQL> create table prueba (id number, txt varchar2(10));
Table created.
SQL>
SQL> insert into prueba values (1,'ONE');
1 row created.
SQL> SQL> SQL> insert into prueba values (1,'ONE');
1 row created.
SQL>
SQL> insert into prueba values (1,'ONE');
1 row created.
SQL>
SQL> insert into prueba values (2,'TWO');
1 row created.
SQL>
SQL> insert into prueba values (1,'TWO');
1 row created.
SQL> select * from prueba;
ID TXT
---------- ----------
1 ONE
1 ONE
1 ONE
2 TWO
1 TWO
SQL> select id,
2 txt
ID TXT
---------- ----------
1 ONE
1 TWO
2 TWO
ICohen Received on Fri May 20 2005 - 08:22:43 CDT
![]() |
![]() |