inseri estes no banco INSERT INTO revista (RGvisitante, RGfunc, ocorrencia, horaVisita) VALUES ('5666611', '1123455', 'canivete', '11:00') INSERT INTO revista (RGvisitante, RGfunc, ocorrencia, horaVisita) VALUES ('6021230', '1123455', 'punhal', '11:15') 1--diz qual detento tem determinada tatuagem select d.nome from detento d,caracfisicas c where d.num_ref_carac = numref and c.tatuagem = 'dragão' 2--diz quais os presos tem Silva no nome select d.nome from detento d where d.nome like '%Silva%' 3--diz os presos que tem pai ou mãe desconhecidos select d.nome from detento d where d.nome_pai like 'desconhecid_' or d.nome_mae like 'desconhecid_' 4--porcentagem de negros select count(d.nome)*100 from detento d,caracfisicas c where c.numref = d.num_ref_carac and c.cor like 'negr_' 5--listar os presos de uma cela select d.nome,c.numcela from detento d,cela c where c.numcela = 5 and d.numcela = 5 6--funcionarios que controlam setores select f.nome from funcionario f,setor s where f.setor = s.numSetor and f.controlaSetor = 's' 7--funcionarios q cuidam de celas especiais select f.nome from funcionario f,cela c where f.rg = c.rgresponsavel and c.eh_especial = 's' 8--ordenar os funcionarios por sexo select f.nome,f.sexo from funcionario f order by sexo 9--listar os presos associados às ocorrências que suas visitas tentaram levar select distinct d.nome as detento,r.ocorrencia,guest.nome as portador from detento d,revista r,visitantes guest,visitas v where r.ocorrencia != 'sem ocorrencias' and r.rgvisitante = v.rgvisita and v.rgdetento = d.rg and guest.rgvisitante = v.rgvisita 10--listar os telefones dos advogados de todos os presos de uma tal cela. select tel.telefone,adv.nome,adv.numoab from telefonesadvogado tel, detento d,cela c,ehdefendidopor defenc, advogado adv where c.numcela = 5 and c.numcela = d.numcela and d.rg = defenc.rgdetento and defenc.oabadv = tel.regoabadv and defenc.oabadv = adv.numoab order by adv.nome