how would i write the following sql statment 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