Buscar

prova 1 . comandos

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

/* Questão 01 - Prova 01*/
Select jg.nome
from clube cl, jogador jg, jogador_jogo jj, jogo j
where cl.idclube = jg.clube_idclube
and jg.idjogador = jj.jogador_idjogador
and jj.jogo_idjogo = j.idjogo
and cl.nome = 'Paysandu'
and j.dataJogo = '2015/03/29';
/* Questão 02 - Prova 01*/
select vencedor, count(*)
from jogo
when year (dataJogo) = 2015
group by vencedor;
/* Questão 03 - Prova 01*/
select cl.nome
from clube cl, tecnico_clube tc, tecnico t
where cl.idclube = tc.clube_idclube
and tc.tecnico_idtecnico = t.idtecnico
and t.nome = 'Sidney Moraes'
and year(dtinicio) = 2015;
/*Questão 01 - Prova 02*/
select a.nome
from arbitro a, arbitro_has_jogo aj, jogo j
where a.idarbitro = aj.arbitro_idarbitro
and aj.jogo_idjogo = j.idjogo
and j.datajogo = '2015/03/29';

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Continue navegando

Outros materiais