|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by mvalencia in PostgreSQL Database
I have a select statement that returns a single row for each record as expected but one of the columns contains comma separated codes and I need to replace the codes in the column with comma separated descriptions. I do have a table that shows descriptions for the codes but don't know how to replace the codes and maintain the number of columns and single row per stock record.
Here is a sample of the results:
"L090434","N",",995,925,94
6,"
1:
2:
|
SELECT stocknumber, inventorystatus, options
FROM stock LEFT OUTER JOIN vehicleoptions ON vehicleoptions.option_cd = stock.options
|
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625