INSERT INTO Disciplinas
('ID_Disciplina','Nome_Disciplina','Descricao','Carga_Horaria','ID_Professor')
VALUES
('1','Matemática','Estudo de conceitos matemáticos avançados','60','1'),
('2','História','História mundial e local','45','2'),
('3','Física','Princípios fundamentais da física','60','1'),
('4','Química','Estudo da química e suas aplicações','45','3'),
('5','Inglês','Aulas de inglês para iniciantes','45','4'),
('6','Artes','Exploração da criatividade artística','30','5');
SELECT * FROM Disciplinas;
INSERT INTO Turmas
('ID_Turma','Nome_Turma','Ano_Letivo','ID_Professor_Orientador')
VALUES
('1','Turma A','2023','1'),
('2','Turma B','2023','2'),
('3','Turma C','2023','3'),
('4','Turma D','2023','4'),
('5','Turma E','2023','5');
SELECT * FROM Turmas;
INSERT INTO Turma_Disciplinas
('ID_Turma',
'ID_Disciplina')
VALUES
('1','1'),
('2','2'),
('3','3'),
('4','4'),
('5','5'),
('1','3'),
('2','1'),
('3','2');
SELECT * FROM Turma_Disciplina;
INSERT INTO Turma_Alunos
('ID_Turma','ID_Aluno')
VALUES
('1','1'),
('2','2'),
('3','3'),
('4','4'),
('5','5'),
('1','6'),
('2','7'),
('3','8'),
('4','9'),
('5','10');
SELECT * FROM Turma_Alunos;
INSERT INTO Notas
(id_nota,id_aluno,id_disciplina,valor_nota,data_avaliacao)
VALUES
(2,1,1,6.19,'07/07/2023'),
(3,1,2,7.18,'07/07/2023'),
(4,1,3,7.47,'07/07/2023'),
(5,1,4,7.46,'07/07/2023'),
(6,1,5,4.35,'07/07/2023'),
(7,1,6,4.43,'07/07/2023'),
(8,1,7,0.76,'07/07/2023'),
(9,1,8,9.22,'07/07/2023'),
(10,1,9,9.04,'07/07/2023'),
(11,1,10,3.28,'07/07/2023'),
(12,2,1,1.34,'07/09/2023'),
(13,2,2,3.1,'07/09/2023'),
(14,2,3,1.66,'07/09/2023'),
(15,2,4,0.03,'07/09/2023'),
(16,2,5,4.34,'07/09/2023'),
(17,2,6,4.02,'07/09/2023'),
(18,2,7,8.79,'07/09/2023'),
(19,2,8,1.17,'07/09/2023'),
(20,2,9,8.26,'07/09/2023'),
(21,2,10,3.41,'07/09/2023'),
(22,3,1,6.82,'07/27/2023'),
(23,3,2,8.21,'07/27/2023'),
(24,3,3,1.3,'07/27/2023'),
(25,3,4,4.01,'07/27/2023'),
(26,3,5,0.25,'07/27/2023'),
(27,3,6,6.63,'07/27/2023'),
(28,3,7,9.74,'07/27/2023'),
(29,3,8,3.77,'07/27/2023'),
(30,3,9,0.58,'07/27/2023'),
(31,3,10,8.52,'07/27/2023'),
(32,4,1,8.37,'08/08/2023'),
(33,4,2,0.26,'08/08/2023'),
(34,4,3,5.95,'08/08/2023'),
(35,4,4,6.98,'08/08/2023'),
(36,4,5,6.18,'08/08/2023'),
(37,4,6,4.79,'08/08/2023'),
(38,4,7,7.96,'08/08/2023'),
(39,4,8,0.62,'08/08/2023'),
(40,4,9,7.77,'08/08/2023'),
(41,4,10,5.81,'08/08/2023'),
(42,5,1,2.25,'08/15/2023'),
(43,5,2,5.82,'08/15/2023'),
(44,5,3,4.11,'08/15/2023'),
(45,5,4,7.99,'08/15/2023'),
(46,5,5,3.23,'08/15/2023'),
(47,5,6,8.09,'08/15/2023'),
(48,5,7,8.24,'08/15/2023'),
(49,5,8,3.33,'08/15/2023'),
(50,5,9,4.24,'08/15/2023'),
(51,5,10,0.11,'08/15/2023');
SELECT * FROM Notas;
SELECT * FROM Alunos ORDER BY nome_aluno;
SELECT * FROM Disciplinas WHERE carga_horaria > 40;
SELECT * FROM Notas WHERE valor_nota > 6 AND valor_nota < 8;