Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Newbie question: deleted rows less than selected
Hi,
SQL> select GPRS_CO_MSISDN from GPRS_SERVICIO_GPRS 2 where NOT EXISTS (select 1 from SAPN_SERVICIO_APN where SAPN_CO_MSISDN = GPRS_SERVICIO_GPRS.GPRS_CO_MSISDN) 3 group by GPRS_CO_MSISDN;
105005 rows selected
SQL> delete from GPRS_SERVICIO_GPRS
2 where NOT EXISTS (select 1 from SAPN_SERVICIO_APN where
SAPN_CO_MSISDN = GPRS_SERVICIO_GPRS.GPRS_CO_MSISDN);
103962 rows deleted
In the table GPRS_SERVICIO_GPRS is possible that exists several rows with the same GPRS_CO_MSISDN.
Why are "rows deleted" < "rows selected" ?
Thanks in advance,
Jose Luis.
Received on Wed Oct 19 2005 - 02:32:07 CDT
![]() |
![]() |