Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Print multiple formatted records (please show spool output) SPOOL your output to c:Folderproject5spool.txt Set SERVEROUTPUT ON to use the DBMS_OUTPUT package Declare variables for the

Print multiple formatted records (please show spool output)

SPOOL your output to c:\Folder\project5spool.txt

Set SERVEROUTPUT ON to use the DBMS_OUTPUT package

Declare variables for the entire record using %ROWTYPE

Use FOR/IN to read all records from DDI.LEDGER_VIEW

The SELECT statement should read all fields from DDI.LEDGER_VIEW

where REGDATE = '01-JUN-15' ordered by ROOMNUM

Use DBMS__OUTPUT.OUTPUT_LINE to print the values for each field concatenate FIRSTNAME and LASTNAME into a single name and use" TO_CHAR to format dates as 'MM/DD/YYYY' and currency as '999,999.00'

Compile and run the procedure

Close spool

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

Step: 3

blur-text-image

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Describe and give two examples of cash equivalents.

Answered: 1 week ago

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago