home *** CD-ROM | disk | FTP | other *** search
- set verify off
- set feedback off
- break on custid on name on prodid skip 1
- column ordid format 9999 heading 'Order'
- column orderdate heading ' Date'
- column custid format 999999 heading 'CustID'
- column prodid format 999999 heading 'Product'
- column qty format 99999999 heading 'Quantity'
- column itemtot format $999,999 heading 'Total'
- column actualprice format $999,999.99 heading 'Price'
- column name format a15 heading 'Customer'
- set underline =
- set pagesize 24
- ttitle center 'SUMMIT SPORTING GOODS -- PRODUCTS ORDERED' skip 2
- spool temprpt
- select ord.custid, name, prodid, actualprice, qty, itemtot,
- ord.ordid, orderdate
- from ord, customer, item
- where ord.custid = customer.custid
- and ord.ordid = item.ordid
- and ord.custid = '&1'
- order by 1, 3, 7
- /
- spool off
- pause Press RETURN to return to SQL*Menu ...
- exit
-