Helados

Create database 'helados';

use helados;

create table sabor(

'id sabor' int (5);

'nombre' varchar(10) not null,

primary key('id sabor'));

 

create table vendido(

'id sabor' int(5) not null,

'cuenta' int (5) auto_increment;

key ('id sabor') references sabor ('id sabor');

 

insert in to 'Sabor' ('id sabor','nombre')

(1,'fresa'),

(2,'mango'),

(3,'mamey'),

(4,'Queso'),

(5,'Galleta');

 

insert into 'vendido' ('id sabor','Cuenta')

(1,1),

(2,2),

(3,3),

(4,4),

(5,5);