Tarea crear scripts

1,648
-1

Published on

trabajo realizado para crear una base de datos

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,648
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
43
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Tarea crear scripts

  1. 1. Relación de cantante<br />CREATE DATABASE BD-GRUPOSMUCICALES<br />CRÉATE TABLE GRUPO<br />(Cod-grupo char (5) Not null;<br />Nombre varchar (15) Not null;<br />N°integrantes varchar (30) not null;<br />N°Albunes varchar (100));<br />Primary key cod-grupo<br />CRÉATE TABLE CANTANTE<br />(Cod-cantante char (5) Not null;<br />Nombre-cantante varchar (30) Not null;<br />Apellidos-cantante varchar (50) not null;<br />Nacionalidad-cantante varchar (50)) ;<br />Primary key cod-cantante<br />Foreign key cod-musica<br />CRÉATE TABLE MUSICA<br />(Cod-musica char (5) Not null;<br />Titulo-musica varchar (30) Not null;<br />Soporte-musica char (5) not null;<br />Genero-musica varchar (15) Not null;<br />Tiempo-musica date (8));<br />Primary key cod-musica<br />Foreign key cod-Estanteria<br />CRÉATE TABLE ESTANTERIA<br />(Cod-estanteria char (3) Not null;<br />Nombre-estantería varchar (30) Not null;<br />Material-estanteria char (8));<br />Primary key cod-estanteria<br />RELACION DE HOSPITAL<br />CREATE DATABASE BD-HOSPITAL<br />CRÉATE TABLE HOSPITAL<br />(Cod-Hospital char (5) Not null;<br />Nombre-hospital varchar (30) Not null;<br />Direccion varchar (30));<br />Primary key cod-hospital<br />CRÉATE TABLE DOCTOR<br />(Cod-doctor char (3) Not null;<br />Nombre varchar (30) Not null;<br />Apellidos varchar (30) Not null;<br />Dni char (8) Not null;<br />Especialidad varchar (30));<br />Primary key cod-doctor<br />CRÉATE TABLE PACIENTE<br />(Cod-paciente char (5) Not null;<br />Nombre varchar (30) Not null;<br />Apellido varchar (30)) Not null;<br />Dni char (8) not null;<br />Edad char (3));<br />Primary key cod-paciente<br />

×