Nithin Task
Nithin Task
Nithin
Emp ID:2491
Task – 1
Write SQL to create the table structure as listed above and write Insert statements
to insert values as per the above table. (No score for this task)
1. Write an Oracle function to find out the total units available (Closing
balance) for a folio, scheme combination for any given date. Function name
and arguments are given below:
Closing balance = A – B
A = sum of all inflow transactions (trxn_sign = ‘+’) in the given scheme till the given date
B = sum of all outflow transactions (trxn_sign = ‘-’) in the given scheme till the given date
Select plf_get_closing_balance(arg_folio_no => '1234567', arg_scheme_code => ‘EFG’
arg_closing_balance_date => ’31-Jan-2022’) from dual;
2. Write an Oracle function to find out the total valuation available for a
folio-scheme combination for any given date function name and
arguments are given below :
AUM = A * B
A = Closing balance in for the given folio-scheme for the given date
*******Output is 324177.0426744
Expected output.
Closing
Folio_no Scheme_co balance
de