home *** CD-ROM | disk | FTP | other *** search
- set verify off
- set feedback off
- break on ordid skip 1 on orderdate on custid on total on shipdate
- column ordid format 9999 heading 'Order'
- column orderdate heading ' Date'
- column shipdate heading 'Ship Date'
- column custid format 999999 heading 'CustID'
- column total format $999,999.99 heading 'Order Total'
- column prodid format 999999 heading 'Product'
- column qty format 99999999 heading 'Quantity'
- column itemtot format $999,999.99 heading 'Item Total'
- set underline =
- set pagesize 24
- ttitle center 'SUMMIT SPORTING GOODS -- SALES ORDERS' skip 2
- spool temprpt
- select ord.ordid, orderdate, custid, prodid, qty, itemtot, total, shipdate
- from ord, item
- where ord.ordid = item.ordid
- and (orderdate >= '&1')
- and (orderdate <= '&2')
- order by 2, 1, 4
- /
- spool off
- pause Press RETURN to return to SQL*Menu ...
- exit
-