Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COLUMN ROOMNUM HEADING ROOMNUM FORMAT 999999999 COLUMN REGDATE HEADING ARRIVAL DATE FORMAT DATE COLUMN LASTNAME HEADING CUSTOMER NAME FORMAT A16 COLUMN ADULTCNT HEADING ADULTCNT FORMAT

COLUMN ROOMNUM HEADING ROOMNUM FORMAT 999999999 COLUMN REGDATE HEADING ARRIVAL DATE FORMAT DATE COLUMN LASTNAME HEADING CUSTOMER NAME FORMAT A16 COLUMN ADULTCNT HEADING ADULTCNT FORMAT 99999 COLUMN CHILDCNT HEADING CHILDCNT FORMAT 9999

BREAK ON ROOMRATE skip 1 on Roomnum

COMPUTE SUM LABEL subtotal OF ROOMRATE ON ROOMNUM

COMPUTE SUM LABEL 'Grand Total' OF ROOMRATE ON ROOMNUM

SELECT SUM(ROOMRATE*COUNT(ROOMNUM)) AS ROOMNUM, REGDATE

2 FROM DDI.LEDGER_VIEW BETWEEN <'01-JUN-15' AND '07-JUN-15'>

3 ORDER BY ROOMNUM, REGDATE;

What is wrong with my code?

The question is ----

Project 2 is about printing a formatted list of room registrations from DDI.LEDGER_VIEW

SPOOL your output to c:\cs422a\project2spool.txt

Format COLUMN Headings and Formats for ROOMNUM, REGDATE, LASTNAME, ADULTCNT, CHILDCNT, and ROOMRATE

BREAK on ROOMNUM and COMPUTE a total of ROOMRATE for each ROOMNUM

SELECT the fields indicated above from DDI.LEDGER_VIEW for registrations between '01-JUN-15' and '07-JUN-15' (don't forget to order by ROOMNUM and REGDATE)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+j Describe the various support services delivered by IHR.

Answered: 1 week ago

Question

=+j Explain IHRMs role in global HR research.

Answered: 1 week ago