hi guys,
how would i write the following sql statments using pl/sql table?
SELECT to_char (orderdate, 'yyyymm') as ORDERDATE, SUM(total) as SUM, ordid, custid, shipdate
FROM ORD
WHERE ORDERDATE >= to_date ('198701','yyyymm')
group by orderdate,ordid, custid, shipdate
having SUM(total) > 1000
THANKS