TheLazyPig
Programmer
Hi!
I have a table (sampletbl) that contains all values for dropdown parameter(p_dtlval).
Required Validations:
1) If the dropdown is blank, all dtl_val except PAMI OFW will only appear
2) If chose PAMI OFW, all dtl_val plus PAMI OFW will appear
3) If not blank nor PAMI OFW is chosen, that specific dtl_val will only appear
Here is my code below...
The only validation that works in my query above is 1 & 2. When it comes to choosing a specific dtl_val I get all of the values. Please help!
Thank you!
I have a table (sampletbl) that contains all values for dropdown parameter(p_dtlval).
Required Validations:
1) If the dropdown is blank, all dtl_val except PAMI OFW will only appear
2) If chose PAMI OFW, all dtl_val plus PAMI OFW will appear
3) If not blank nor PAMI OFW is chosen, that specific dtl_val will only appear
Here is my code below...
Code:
SELECT * FROM sampletbl WHERE dtl_val NOT IN ('PAMI OFW')
UNION ALL
SELECT * FROM sampletbl WHERE dtl_val = DECODE([b]p_dtlval[/b],NULL,NULL,[b]p_dtlval[/b]);
The only validation that works in my query above is 1 & 2. When it comes to choosing a specific dtl_val I get all of the values. Please help!
Thank you!