Hi
I have employee table .It has a field called employee marital status
which are like
Marital_status
-----------
101
102
103
104
105
Actually they mean
101 = Married
102 = Widowed
103 = Single
104 = Divorced
105 = Unknown
But these values are not stored in any table .
If I select Marital_status from Employee
select marital_status from employee
I get
101
102
103
104
105
But I want to get
Married
Widowed
Single
Divorced
Unknown
How do I get that with DECODE function . Please suggest code
thanks
I have employee table .It has a field called employee marital status
which are like
Marital_status
-----------
101
102
103
104
105
Actually they mean
101 = Married
102 = Widowed
103 = Single
104 = Divorced
105 = Unknown
But these values are not stored in any table .
If I select Marital_status from Employee
select marital_status from employee
I get
101
102
103
104
105
But I want to get
Married
Widowed
Single
Divorced
Unknown
How do I get that with DECODE function . Please suggest code
thanks