CODIGOS SQL

Considerando un sistema de información y el modelo entidad/relación convertir todas las tablas y generar su estructura con código SQL

1.        Partiendo del modelo siguiente:

2.        Considerando su carnalidad y su clave primaria la conversión al enfoque relacional es tabla base proveedores(s)

Create Table Proveedor

(RFC char (20) Not Null,

Snombre char (20) Not Null,

situacion char (20) Not Null,

ciudad Smallint (10) Not Null,

Primary key (RFC));

 

Create Table Productos 

(Pnombre char (20) Not Null,

 Pnumero char (20) Not Null,

color char (20) Not Null,

peso char (100) Not Null,

ciudad smallint (10),

Primary key (Pnombre));