Group By

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Group By as PDF for free.

More details

  • Words: 54
  • Pages: 1
select to_char(shipped_date,'yyyy') as shipped_year, to_char(shipped_date,'q') as shipped_quarter, sum(price_charged) as revenue from sh_orders_reportable where product_id = 143 and shipped_date is not null group by to_char(shipped_date,'yyyy'), to_char(shipped_date,'q') order by to_char(shipped_date,'yyyy'), to_char(shipped_date,'q'); shipped_year shipped_quarter revenue -------------------- -------------------- ---------1998 2 1280 1998 3 1150 1998 4 350

select to_char(adate,'yy') as yearwise, group by rollup (to_char(adate,'yy'));

count(*)

from tampr.timeoffice_98_06

Related Documents

Group By
October 2019 28
Group Lead By
May 2020 3
Submitted By-group-2
November 2019 66