This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- EXERCICIO - 1 | |
| /* VISAO NORMAL */ | |
| CREATE OR REPLACE VIEW filtro_func_normal AS | |
| SELECT | |
| FIRST_NAME AS "NOME", | |
| LAST_NAME AS "SOBRENOME", | |
| HIRE_DATE AS "DATA CONTRATAÇÃO", | |
| JOB_TITLE AS "CARGO", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| // Ivan Antunes - BT3007243 | |
| typedef struct stno { | |
| int info; | |
| struct stno *right; | |
| struct stno *left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const arrPar = []; | |
| const arrImpar = []; | |
| const arrPrimo = []; | |
| for (let i = 0; i <= 50; i++) { | |
| if (i % 2 === 0) { | |
| console.log('Par: ', i); | |
| arrPar.push(i); | |
| verificaPrimo(i); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <time.h> | |
| // Nome: Ivan Antunes || Prontuario: BT3007243 | |
| // Nome: Mauro Cesar || Prontuario: BT3008444 | |
| // Feito em Epoca de Coronavirus (covid 19) | |
| // Onde o semestre foi cancelado por conta do mesmo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set serveroutput on; | |
| BEGIN | |
| DBMS_OUTPUT.PUT_LINE('Meu bloco de trabalho PL/SQL'); | |
| END; | |
| DECLARE | |
| a number(10,2) := 10; | |
| b number(10,2) := 10; | |
| c number(10,2) := 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Questão 1 | |
| create or REPLACE view vw_pais as | |
| select loc.postal_code, loc.city from HR.locations loc where loc.country_id like '%US%'; | |
| -- Questão 2 | |
| create or REPLACE view vw_empregados as | |
| select emp.first_name as NOME, emp.last_name as SOBRENOME, job.job_title as CARGO, dep.department_name as DEPARTAMENTO | |
| from HR.employees emp inner join HR.jobs job |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef struct stNo { | |
| char info; | |
| struct stNo *esquerda; | |
| struct stNo *direita; | |
| } tNo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef struct stNo { | |
| char info; | |
| struct stNo *esquerda; | |
| struct stNo *direitra; | |
| } tNo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE cargo ( | |
| CAR_ID int not null, | |
| CAR_NOME varchar(100), | |
| CAR_SALARIO_MAX number, | |
| CAR_DATA_INICIO DATE, | |
| CAR_CARGO_SUPERIOR int, | |
| PRIMARY KEY(CAR_ID), | |
| CONSTRAINT FK_CAR_SUPERIOR FOREIGN KEY(CAR_CARGO_SUPERIOR) REFERENCES cargo(CAR_ID) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create table treinador( | |
| TREINADOR_ID int not null, | |
| TREINADOR_NOME varchar(45), | |
| TREINADOR_SALARIO number, | |
| primary key(TREINADOR_ID) | |
| ); | |
| create table campeonato( | |
| CAMPEONATO_ID int not null, | |
| CAMPEONATO_NOME varchar(45), |
NewerOlder