Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Still having problems with report
Having made the changes sugested I now get this error:
(SUM(S.CONC_SEATS_SOLD) * S.CONC_PRICE) CONC_TAKINGS,
*
This is the new code FYI
SELECT S.FILM_NO, FH.HIRE_PRICE,
(SUM(S.CONC_SEATS_SOLD) * S.CONC_PRICE) CONC_TAKINGS,
(SUM(S.ORD_SEATS_SOLD) * S.ORD_PRICE) ORD_TAKINGS,
(SUM(S.CONC_SEATS_SOLD) * S.CONC_PRICE
+ SUM(S.ORD_SEATS_SOLD) * S.ORD_PRICE) TOT_TAKINGS
FROM FILM_HIRE FH, SCREENING S, FILM F, CINEMA C
WHERE S.FILM_NO = (SELECT FILM_NO
FROM FILM WHERE FILM_NAME = '&&F_NAME') AND S.CINEMA_CODE = (SELECT CINEMA_CODE FROM CINEMA WHERE CINEMA_NAME = '&&C_NAME') AND S.FILM_NO = FH.FILM_NO AND S.CINEMA_CODE = FH.CINEMA_CODE AND S.HIRE_START = FH.HIRE_START