Monday, January 25, 2021
After my previous post, in which APEX Office Print (AOP) was used to generate a monthly timesheet, I was asked if I could provide a similar example using the Sample Database Application. Well, here we go!
select cursor ( select cursor ( select product_name, period, mens, womens, accessories from (select pi.product_name, to_char(o.order_timestamp, 'MON RRRR') as period, (oi.quantity * oi.unit_price) as amount, pi.category from demo_order_items oi join demo_orders o on o.order_id = oi.order_id join demo_product_info pi on pi.product_id = oi.product_id order by o.order_timestamp) pivot (sum(amount) for (category) in ('Mens' as mens, 'Womens' as womens, 'Accessories' as accessories))) as sales from dual) as "data" from dual
Author: Kevin Thyssen
Ahmet
Friday, February 19, 2021
Thank you very much!
Bhavin Adhvaryu
Monday, February 1, 2021
Hello Kevin,
Many thanks for providing the example using the Sample Database Application.
Nice to understand and get to know AOP in this way...! Fantastic..!