Hi all,
Hope I can explain this. I'm on 10.2A GUI on Windows for what it's worth.
I have a dynamic temp table that is created from an Excel sheet the user defines. As part of the load of the sheet, the user is asked to define what columns determines a record as each record spans multiple lines of the file. For argument's sake let's say a record is columns "Invoice Number,Invoice Date,Supplier Ref". Of course this could vary. I can build a dynamic query with a BREAK BY on these columns easily. The problem is that I'm not sure how to deal with the FIRST-OF side of things. I want to do
IF FIRST-OF(1) AND FIRST-OF(2) AND FIRST-OF(3) THEN ...
but what if there are only 2 columns that define a record? Or 20? Can anyone think of a clever way of dealing with this?
Thanks
Hope I can explain this. I'm on 10.2A GUI on Windows for what it's worth.
I have a dynamic temp table that is created from an Excel sheet the user defines. As part of the load of the sheet, the user is asked to define what columns determines a record as each record spans multiple lines of the file. For argument's sake let's say a record is columns "Invoice Number,Invoice Date,Supplier Ref". Of course this could vary. I can build a dynamic query with a BREAK BY on these columns easily. The problem is that I'm not sure how to deal with the FIRST-OF side of things. I want to do
IF FIRST-OF(1) AND FIRST-OF(2) AND FIRST-OF(3) THEN ...
but what if there are only 2 columns that define a record? Or 20? Can anyone think of a clever way of dealing with this?
Thanks