Question

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

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)

How would run the command for this?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

I think you need SQL query for selectinf ROOMNUM and ROOMREG, so here it goes

SELECT SUM(ROOMRATE*COUNT(ROOMNUM)) AS ROOMNUM, REGDATE FROM DDI.LEDGER_VIEW BETWEEN '01-JUN-15' AND '07-JUN-15' ORDERBY ROOMNUM, REGDATE;

Add a comment
Know the answer?
Add Answer to:
Project 2 is about printing a formatted list of room registrations from DDI.LEDGER_VIEW SPOOL your output...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Information About This Project             In the realm of database processing, a flat file is a...

    Information About This Project             In the realm of database processing, a flat file is a text file that holds a table of records.             Here is the data file that is used in this project. The data is converted to comma    separated values ( CSV ) to allow easy reading into an array.                         Table: Consultants ID LName Fee Specialty 101 Roberts 3500 Media 102 Peters 2700 Accounting 103 Paul 1600 Media 104 Michael 2300 Web Design...

  • CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write...

    can i get some help with this program CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write a Java program that uses recursion to find all solutions to the n-Queens problem, for 1 Sns 15. (Students who took CMPS 12A from me worked on an iterative, non-recursive approach to this same problem. You can see it at https://classes.soe.ucsc.edu/cmps012a/Spring l8/pa5.pdf.) Begin by reading the Wikipcdia article on the Eight Queens puzzle at: http://en.wikipedia.org/wiki/Eight queens_puzzle In...

  • Code is in C# Your instructor would like to thank to Marty Stepp and Hélène Martin...

    Code is in C# Your instructor would like to thank to Marty Stepp and Hélène Martin at the University of Washington, Seattle, who originally wrote this assignment (for their CSE 142, in Java) This program focuses on classes and objects. Turn in two files named Birthday.cs and Date.cs. You will also need the support file Date.dll; it is contained in the starter project for this assignment. The assignment has two parts: a client program that uses Date objects, and a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT