Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. create table EMPLEADO(
  2. codigo_c varchar(20) primary key,
  3. nombre varchar(30) not null,
  4. edad int(2) not null,
  5. oficio varchar(15) not null,
  6. dir varchar(15) not null,
  7. fecha_alt varchar(15) not null,
  8. salario int(7) not null,
  9. comision int(5) not null,
  10. depto_no int(3) not null
  11. );
  12.  
  13. create table DEPARTAMENTO(
  14. depto_num int(3) primary key,
  15. nombre_depto varchar(20) not null,
  16. localizacion varchar(15) not null,
  17. foreign key (depto_num) references EMPLEADO(depto_no)
  18. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement