Procura

Banco de dadosOracle


EXERCÍCIOS - Exercício 3

  • (FAURGS 2018)

No Oracle 11g, um índice bitmapde junção ( bitmapjoin index) é um índice bitmaprepresentando a junção entre duas ou mais tabelas. Considere as tabelas e os comandos de criação de índice bitmapde junção, definidos abaixo, usando PL/SQL.
Create table DEPARTAMENTOS (codd integer not null primary key, nomed varchar(60) not null);
create table EMPREGADOS (codEmp integer not null primary key, nome varchar(40) not null, salario numeric(8,2), codd integer not null, codGerente integer, foreign key (codd) references DEPARTAMENTOS, foreign key (codGerente) references EMPREGADOS);
I - CREATE BITMAP INDEX IDX1 ON EMPREGADOS(E2.nome) FROM EMPREGADOS E1, EMPREGADOS E2 WHERE E1.CODGERENTE = E2.CODEMP; II - CREATE BITMAP INDEX IDX2 ON EMPREGADOS(DEPARTAMENTOS.nomed) FROM DEPARTAMENTOS, EMPREGADOS WHERE DEPARTAMENTOS.CODD = EMPREGADOS.CODD; III - CREATE UNIQUE BITMAP INDEX IDX3 ON EMPREGADOS(DEPARTAMENTOS.nomed, EMPREGADOS.nome) FROM DEPARTAMENTOS, EMPREGADOS WHERE DEPARTAMENTOS.CODD = EMPREGADOS.CODD;
Quais comandos são válidos, considerando as restrições existentes para criação de índices bitmapde junção?


A) Apenas I.

B) Apenas II.

C) Apenas III.

D) Apenas I e II.

E) Apenas II e III.


Próximo:
EXERCÍCIOS - Exercício 4

Vamos para o Anterior: Exercício 2

Tente Este: Exercício 42

Primeiro: Exercício 1

VOLTAR ao índice: Banco de dados






Cadastre-se e ganhe o primeiro capítulo do livro.
+
((ts_substr_ig=0.00ms))((ts_substr_id=12.80ms))((ts_substr_m2=0.00ms))((ts_substr_p2=0.51ms))((ts_substr_c=0.48ms))((ts_substr_im=0.73ms))
((total= 15ms))