I am not able to create a this Select query :
When I query:
SELECT DISTINCT PRODUCT_ID FROM SYSADM.TABLE;
I get the output as:
EMA12345
EMA4567844
EMA4545455
US12342
NA4545454
PRS767657
Now I want to fetch the data such as product id retrieved is:
12345
4567844
4545455
US12342
NA4545454
PRS767657
That means every product id other than starting with EMA should come as it is and those starting with EMA should be without EMA.
Need to append this within another select query. Can't use procedure.