sql - How to get the sum with NVL in oracle? -


Please help, I do not know how to get the sum of two data with the NVL function and display it as two results

desired output:

  data, date, total number of G column, total number of U column  

Here are some queries Is:

  SELECT 'data' || ',' To_char (d.dtime_day, 'MM / dd / Yyyy')  

- I want to get the amount of this part

  || ',' || NVL (GPO, 0)  
  || '> NVL (g.office, 0)  

- I want to get the sum of this part

,' || NVL (U.P.O.SS., 0) || ',' NVL (U.Office, 0) to SwamyWHDC_Data D

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -