I have a complex query that involves select distinct of multiple columns, joins, and where clause. However, the results are showing repeated values with different dates as follows:
ID title Date other field
1 text 1 01-Jan-20 another value
1 text 1 07-Mar-20 another value
1 text 1 20-Sep-20 another value
1 text 1 30-Dec-20 another value
2 text 2 02-Feb-20 something else
2 text 2 12-Mar-20 something else
2 text 2 15-May-20 something else
2 text 2 17-Jul-20 something else
I want to display only unique values once along with the changing dates like this:
1, text, another value
01-Jan-20
07-Mar-20
20-Sep-20
30-Dec-20
2, text, something else
02-Feb-20
12-Mar-20
15-May-20
17-Jul-20
Should I modify the oracle query or utilize map/reduce on the resulting array in my programming language? Any suggestions or examples?