Banco de DadosFAURGS2018Banco do Estado do Rio Grande do Sul S/A
No Oracle 11g, um índicebitmapde junção (bitmapjoin index) é um índicebitmaprepresentando a junção entre duas
ou mais tabelas. Considere as tabelas e os comandos de criação de índicebitmapde 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 índicesbitmapde junção?
Atalho: tecle de A a E para responder
Comentários da comunidade
Entre para participar da discussão.
Entrar para comentar