I have a table where there are 5 columns
let say a,b,c,d,tran_date
.
I want to generate a query to find out the minimum tran_date for every a,b,c,d
in the table.
Any help how this can be done.
EDIT:The result of this query needs to be subtracted from a single date which is a result from the query:
select ref_date from ref_table
How this can be done because the error ORA-01427: single row subquery returns more than one row
.