I followed many such links Merging two Maps, but unable to solve the issue yet.
I have two Maps List<Map<String, Object>>
- This map contains acc_num, parent_acc_num, crte_dt, rnwl_dt, userid
etc and other map contains acc_num
and isActive
(This is more refinement from 1st map).
I wanted to create/combine these two maps and create final map which conatins acc_num, parent_acc_num, crte_dt, rnwl_dt, userid
+ isActive
details.
How can I do that ?
Below is the sample Data. The only issue is both are List of Map, how to iterate one over another ?
{CRTE_DT=2017-06-22, USER_ID=ABC, ACC_NUM=9449, RNWL_DT=2017-06-22, PARENT_ACC_NO=9449}
{ACC_NUM=9449, IS_ACTIVE=false}
Another Query: If below works then may not need to do calculations
I have the below Oracle query using 12c, I need the way to check in query itself if
- If CreatedDate + 30 days > Sysdate then show column having true ---> In Trail
- If CreatedDate + 30 days < Sysdate then show column having false ---> Out of Trail Period
"select cust.acc_num, third.parent_acc_id, cust.crte_dt,cust.updated_dt ,cust.crte_user_id from CUST_ACCT cust, ThirdParty_third third " + "where cust.updated_dt is null and cust.CRTE_DT < sysdate " + "and cust.acc_num = third.third_code and is_actv = ? union " + "select cust.acc_num, third.parent_acc_id, cust.crte_dt,cust.updated_dt, cust.crte_user_id from CUST_ACCT cust, ThirdParty_third third " + "where ( cust.updated_dt is not null and cust.updated_dt < sysdate ) " + "and cust.acc_num = third.third_code and is_actv = ? ";