Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting the value of a column (column name is derived from a query)

798590Nov 23 2010 — edited Nov 27 2010
Hi,
I have a query

SELECT
cf.cstm_fld_phys_nm
FROM app.fld cf
INNER JOIN ref.dmn_ref dr
ON (cf.typ_id=dr.typ_id)
WHERE dr.cd='Transaction'
AND indicator_notify=0

This query gives me the physical name of the column. I need the value of that column.

For example, If i get the output from the above query as 'dept no' then i should get the value of the column 'dept no'.

It should be something like ,

select value from transaction_table where column_name='dept no'


Can you guys please help me out here..?

Your help would be greatly appreaciated.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2010
Added on Nov 23 2010
11 comments
469 views