The document contains 5 procedures that query and output data from movie and theater databases. The first procedure selects and outputs a movie name. The second selects and outputs the age rating. The third selects movies without an age rating. The fourth selects theaters without an assigned movie. The fifth performs a left join to select theaters and their assigned movies.
The document contains 5 procedures that query and output data from movie and theater databases. The first procedure selects and outputs a movie name. The second selects and outputs the age rating. The third selects movies without an age rating. The fourth selects theaters without an assigned movie. The fifth performs a left join to select theaters and their assigned movies.
The document contains 5 procedures that query and output data from movie and theater databases. The first procedure selects and outputs a movie name. The second selects and outputs the age rating. The third selects movies without an age rating. The fourth selects theaters without an assigned movie. The fifth performs a left join to select theaters and their assigned movies.
AS R peliculas%Rowtype BEGIN SELECT Nombre INTO R FROM Peliculas;
Dbms_output.put_line(|| R.Nombre); END
2. CREATE OR REPLACE PROCEDURE peli_sp AS R peliculas%Rowtype BEGIN SELECT DISTINCT CalificacionEdad INTO R FROM Peliculas;
Dbms_output.put_line( Son ||R.CalificacionEdad); END
3. CREATE OR REPLACE PROCEDURE peli_sp AS R peliculas%Rowtype BEGIN SELECT * INTO R FROM Peliculas WHERE CalificacionEdad IS NULL;
Dbms_output.put_line(R.Nombre||||R.CalificacionEdad); END
4. CREATE OR REPLACE PROCEDURE peli_sp AS R peliculas%Rowtype BEGIN SELECT * INTO R FROM Salas WHERE Pelicula IS NULL;
Dbms_output.put_line(R.Nombre|| ||); END 5. CREATE OR REPLACE PROCEDURE peli_sp AS R peliculas%Rowtype BEGIN SELECT * INTO R FROM Salas LEFT JOIN Peliculas ON Salas.Pelicula = Peliculas.Codigo;
Dbms_output.put_line(R.Nombre|| ||R.Pelicula); END