Skip to content

Commit

Permalink
Update VPL 6
Browse files Browse the repository at this point in the history
Added the final code
  • Loading branch information
mateusadada authored Aug 30, 2024
1 parent eaa236c commit ae34d99
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions solved_exercises/VPL/6 - Comandos SQL-Select/Query.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
/* ################### */

/* Digite aqui seu SQL */

/* ################### */
SELECT
aluno.aluno_key,
aluno.nome,
aluno.ingresso,
cidade.nome,
sexo.nome,
disciplina.sigla
FROM
aluno, cidade, sexo, disciplina, matricula
WHERE
(aluno.sexo_key = 1) and
(aluno.cidade_key = 2) and
(disciplina.disciplina_key = 2) and
(aluno.sexo_key = sexo.sexo_key) and
(cidade.cidade_key = aluno.cidade_key) and
(matricula.disciplina_key = disciplina.disciplina_key) and
(aluno.aluno_key = matricula.aluno_key)

0 comments on commit ae34d99

Please sign in to comment.