MINUS

Ele verifica a combinação dos resultados com o operador MINUS e retorna somente as linhas únicas referente e primeira consulta.
— Create table
create table FABIANO_A
(
cd_pessoa_fisica NUMBER not null,
nm_pessoa        VARCHAR2(200) not null,
dt_nascimento    DATE,
nr_cpf           NUMBER(15),
nr_rg            VARCHAR2(15),
st_sexo          VARCHAR2(1)
)
tablespace FABIANO_DATA
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);

— Create table
create table FABIANO_B
(
cd_pessoa_fisica NUMBER not null,
nm_pessoa        VARCHAR2(200) not null,
dt_nascimento    DATE,
nr_cpf    

Comments are closed.

Post Navigation