Skip to content

Tag: oracle

Oracle SQL analytical query

SQL> select LAST_UPDATED_DATE, ODOMETER from demo; LAST_UPDA ODOMETER ——— ———- 05-OCT-18 47174.77 08-OCT-18 12-OCT-18 50246.37 15-OCT-18 19-OCT-18 53743.11 21-OCT-18 22-OCT-18 25-…

SQL group by (count,sum)

Hello i need help abou SQL a have this table and i need this result. thanks for your attention and your answers. select to_char(r.date,’yyyy’) YEAR, sum(1), sum(r.cafe) cafe, sum(r.drink) drink, …