Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL2 Technical Test #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions employee_jarsa.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,46 @@
-- Consider add ';' at end sentence.

CREATE TABLE employee (
id VARCHAR(5),
firstname VARCHAR(50),
lastname VARCHAR(50)
);

CREATE TABLE employee_department (
id VARCHAR(5),
names VARCHAR(20),
descript VARCHAR(140)
);

CREATE TABLE employee_hobby (
id VARCHAR(5),
names VARCHAR(20),
descript VARCHAR(140)
);

-- Tabla Empleado
INSERT INTO employee (id, firstname, lastname)
VALUES (1, 'Alejandra', 'Moreno'),
(2, 'Daniel', 'Cruz'),
(3, 'MariaJ', 'Sifuentes'),
(4, 'Karla', 'Garcia'),
(5, 'Agustín', 'Lara'),
(6, 'Peter', 'Child');

-- Tabla Departamentos
INSERT INTO employee_department (id, names, descript)
VALUES (1, 'Gerencia', 'Principal'),
(2, 'Comedor', 'Lugar para descanso'),
(3, 'Vigilancia', 'Seguridad de la empresa'),
(4, 'Almacen', 'Recibimiento de inventario'),
(5, 'Contabilidad', 'Llevar a cabo la cuenta monetaria'),
(6, 'Sistemas', 'Encargados del sistema principal');

INSERT INTO employee_hobby (id, names, descript)
VALUES (1, 'Deporte', 'Jugar Futbol'),
(2, 'Ocio', 'Ver peliculas'),
(3, 'Arte', 'Pintar cuadros');



-- ...