Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Print a simple report using SQL SPOOL your output to c:CS4210project2spool.txt Use COLUMN to set up appropriate column headings and formats for DDI.LEDGER_VIEW Field Heading

Print a simple report using SQL

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

Use COLUMN to set up appropriate column headings and formats for DDI.LEDGER_VIEW

Field Heading Format REGID RegID 99999999 REGDATE Date DATE NAME Name A20 ROOMNUM Room 99999999 ROOMRATE Rate 999,999.00

Set appropriate values for PAGESIZE (255), LINESIZE (80) and TTITLE

Add BREAK and COMPUTE for subtotal and total of ROOMRATE Break on ROOMNUM for the subtotal and REPORT for total

Run a SQL command to print records from DDI.LEDGER_VIEW where REGDATE < '08-JUN-15' and sort by ROOMNUM and REGDATE

Close spool

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions