I have a column in a table which has codes for a specific value. For ex, the column 'CODES' in table 'LOG_DATA' contain data which are codes for other values and referenced in some other table which I don't know about. How do I look up the 'CODES' column to get the respective values for each data in my column?
I have tried DECODE but I am not able to structure the statement properly