I have below tables:
- I want to create View such that for
descr = 'O'and for commonid_isinfield value from both tables, check theratiofield and take only the row whereratiofield value is low. - for
descr = 'O'and if the id_isin exist in one table but not in another then take those rows(bidirectional) - For all the rows where
descr ! = 'O', take all those rows from tableIS_ID_TST.
Below is the expected output from view for example:
ID_ISIN QUOTE_CRNY DESCR RATIO ALLOCATIONASSETTYPE
L000123 USD O 0.0769 Other total
L000129 USD O 0.0669 Other total
D123458 USD O 0.64039 Other total
M123456 USD O 5.64039 Other total
F563458 USD C 0.84039 Other total
G123456 USD null 0.04039 Other total
L000123 USD C 5.0769 Other total
Can i create View based on this conditions ?