Hi experts,
I have a table myTable which has a column name Id. The Id is not unique & hence each Id can have multiple related records.
My requirement is to fetch 1 data set of say 100 unique ID from myTable & then parse these 100 unique ID to get its all related records from myTable
Something like
Step 1 Get 100 unique Id from mYTable
Step 2 Now get all records related to these 100 id's from myTable
STep 3 Filter what you got in step 2 via " type "column
Step 4 Use the step 3 filter data to handle some business logic for "type" ( i will take care of this part).
Step5 Now use the step 3 filter data set & filter it more with"sub type " column
Step 6 use the above filter data to handle some business logic for "sub type " ( i will take care of this part).
Currently my solution is working but I have to use multiple while selects on several buffers of myTable. hence was looking for a solution using which i can store the data i nee in Step2 on runtime basis like in temptable or collection & then keep using that data for all my data needs in subsequent steps.
With temptable approach , challenge i m facing is that the moment i change my temptable buffer name i loose all data stored in my initial temptable buffer, so is there away i can retain the temptable intial buffer data in subsquence bufferes using tablebuffer.data() /buf 2 buf . If not can you suggest alternative ways of how I can store the data collected in step 2 during runtime like how do i get it in list or container if not at all temptables can be used.
The end objective here is to minmize the db sql trips which is best done by storing the data generated step 2 during run time.
Thanks
Mav.