Considere as seguintes tabelas relacionais e respectivas instâncias.
R
A | B
1 | 3
2 | 3
3 | 4
5 | 5
5 | 7
8 | 8
S
C | D
1 | 9
2 | 3
3 | 4
3 | 4
3 | 4
Analise o comando SQL a seguir.
delete from S
where not exists
(select * from R
where R.A=S.C and R.B=S.D)
O número de registros deletados por esse comando é:
R
A | B
1 | 3
2 | 3
3 | 4
5 | 5
5 | 7
8 | 8
S
C | D
1 | 9
2 | 3
3 | 4
3 | 4
3 | 4
Analise o comando SQL a seguir.
delete from S
where not exists
(select * from R
where R.A=S.C and R.B=S.D)
O número de registros deletados por esse comando é:
- A)0;
- B)1;
- C)2;
- D)4;
- E)5.