So here is the story,
SELECT STOCK_TABLE.Product_Name
From STOCK_TABLE
inside Product_Name contain:
- shirt
- jeans
- cap
- T-Shirt
So I want to change the contain of the item inside Product_Name, as long as I know that we can use decode to face this problem, but the problem is i just want to decode some of theme (Jeans and Cap), not all. so i use:
SELECT
DECODE(STOCK_TABLE.Product_Name, 'Jeans', 'PJ1', 'Cap','PC1') as "Product Name"
From
STOCK_TABLE
then the result come out with just PJ1(used to be Jeans) and PC1 (Used to be Cap) only.
And the problem is I want the rest of it (T-Shirt and Shirt) also come out but with its original name.
So how can I do that thing? is that possible using decode with some function addition that I miss or we have to use another SQL function?