If an input string is in the format String#String or String#String;String#String where String can have any number of Capital letter alphabets, underscore,then it should return Y else it should return N.
How can it be done using Regex in PL/SQL only in single SQL query?
(P.S. not using PL/SQL procedures/function.)
Example:- If input string is "CASISA#Y" or "INVOPT#LUMREG;LUMSUM#2000;REGSUM#8000", a 'Y' should be returned else an 'N' should be returned. Note - Please do not build a PL/SQL procedure to accomplish this instead it should be just a SQL that makes use of oracle Regular expression functions.*