Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this document? Why not share!

Codigo sql de reportes

on

  • 951 views

 

Statistics

Views

Total Views
951
Views on SlideShare
950
Embed Views
1

Actions

Likes
0
Downloads
9
Comments
0

1 Embed 1

http://bdeq7.blogspot.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Codigo sql de reportes Codigo sql de reportes Document Transcript

  • Formatos De Reportes Escenario 1 Nombre Fecha: empleado Película Sala Horario Cupo SELECT P.NOMBRE,S.IDSALA,P.HORAINI,S.CAPACIDAD -P.ASISTENCIA AS CUPO FROM PELICULAS P, SALAS S WHERE P.IDPELICULA = S.IDPELICULA
  • Escenario 2 Reporte por Pelicula Sala Horario Dia Recaudado Dulcería Total 1.- SELECT RECAUDADO + VENTAS AS TOTAL, (SELECT S.IDSALAS, P.HORAINI, P.ASISTENCIA * P.PRECIO AS RECAUDADO, D.VENTAS, ) FROM SALAS S, PELICULAS P, DULCERIA D WHERE S.IDSALAS=P.IDPELICULA AND P.IDHORARIO=D.IDHORARIO Escenario 3
  • Cartelera Pelìcula Sinopsis Genero Clasif Horario 1.- SELECT P.NOMBRE, P.SINOPSIS, P.GENERO, P.HORAINI, C.CATEGORIA FROM PELICULAS P, CATEGORIA C WHERE P.IDPELICULA = C. IDPELICULA Escenario 4
  • Nombre Fecha: 1 empleado Película Día de estreno Sinopsis 1.- SELECT NOMBRE, FECHAINI, SINOPSIS FROM PELICULAS;
  • Escenario 5 Vista Global Película Total de Boletos Recaudado Numero de Peliculas Numero de Boletos Venta Total n 1.- SELECT NOMBRE, ASISTENCIA, ASISTENCIA * PRECIO AS RECAUDADO FROM PELICULAS; 2.- SELECT COUNT DISTINCT (DISTINCT nombre) as Numero de Peliculas FROM PELICULAS; 3.- SELECT SUM(asistencia) as Numero de Boletos FROM PELICULAS 4.- SELECT SUM(recaudado ( select ASISTENCIA * PRECIO AS RECAUDADO)) as Venta total