Hello Experts,
Using oracle 9 i and was wondering if someone could help fill in my syntax. I have a stored procedure that accepts 3 parameters. One of the parameters in question is GSelection. What I am trying to code is if the user types ALL for the parameter selection then the query will return all the data, if the user selects GGG then only values where the database field ftype is GGG gets returned, lastly this field also has blank values. So how do I code this to say if the GSelection also equals blank then show me only the blank values. I'm confused on this. Can you help? This is what I have to accomodate the ALL value(which returns all ftypes correctly) and the GGG parameter value which returns all GGG values correctly.
I am just writing the section of the code in question
Thanks again experts.
Using oracle 9 i and was wondering if someone could help fill in my syntax. I have a stored procedure that accepts 3 parameters. One of the parameters in question is GSelection. What I am trying to code is if the user types ALL for the parameter selection then the query will return all the data, if the user selects GGG then only values where the database field ftype is GGG gets returned, lastly this field also has blank values. So how do I code this to say if the GSelection also equals blank then show me only the blank values. I'm confused on this. Can you help? This is what I have to accomodate the ALL value(which returns all ftypes correctly) and the GGG parameter value which returns all GGG values correctly.
I am just writing the section of the code in question
Code:
WHERE
(nVL(GroupSelection, 'ALL') = 'ALL' or a.Flagtype = GroupSelection or ............(this is where I am lost)
Thanks again experts.