|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have a query like
select to_char(processdate, 'Month'),status from tablename group by to_char(processdate, 'Month'), status; this works fine . but in the select statement i want the whole column processdate as o/p not the month alone. if i change it as select processdate,status from tablename group by to_char(processdate, 'Month'), status; its not working help me |
|
#2
|
|||
|
|||
|
That does not make any sense (to me).
Could you give some sample data and the expected result? |
|
#3
|
|||
|
|||
|
what should be returned, if 2 rows have the same month but different days?
so you have 2 dates (due to differend day) but only one row (due to group by), in which you have to return them both? |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > group by function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|