DROP TABLE IF EXISTS Cine;
DROP TABLE IF EXISTS Pelicula;
DROP TABLE IF EXISTS Exibe;

CREATE TABLE Cine (
    nombreCiudad char(30) PRIMARY KEY
);

CREATE TABLE Pelicula (
    codigo integer PRIMARY KEY,
    nombre char(30)
);

CREATE TABLE Exibe (
    Codigo integer PRIMARY KEY,
    cine char(30),
    pelicula integer,
    FOREIGN KEY (cine) REFERENCES Cine(nombreCiudad),
    FOREIGN KEY (pelicula) REFERENCES Pelicula(codigo)
);

INSERT INTO Cine VALUES ('pepe');

SELECT * FROM Cine;

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: