Easy
Gh, February 15, 2018 - 7:50 am UTC
Select all group by all
aggregation
Rajeshwaran, Jeyabal, February 15, 2018 - 12:34 pm UTC
demo@ORA12C> select * from t;
CASE_ID UNITS
-------------------- --------------------
X0002270301
X0002460601 T0707802116
X0002460601
X0002683101
X0002683101 T0721128616
X0002684101
X0002922501
X0005125201
X0005125201 T0813774816
9 rows selected.
demo@ORA12C> select case_id, max(units)
2 from t
3 group by case_id
4 order by case_id;
CASE_ID MAX(UNITS)
-------------------- --------------------
X0002270301
X0002460601 T0707802116
X0002683101 T0721128616
X0002684101
X0002922501
X0005125201 T0813774816
6 rows selected.
demo@ORA12C>
For rajesh
Gh, February 17, 2018 - 10:56 am UTC
The requirement is to have also a null value for same Id..
So I repeat. Select all cols group by all cols. Whatever u use nvl or not.
Question
Raj, November 27, 2018 - 10:30 am UTC
Hi, I have data as mentioned below.
ID Debit Charges
154330749522 2920 null
154330749522 null 12
I need single row & want to place charges at null in first row. please help.
November 28, 2018 - 12:50 am UTC