Thursday 12 September 2013

Select column in query based on other table

Select column in query based on other table

I have a table called A where records contains some column name of table B.
table A Id, columnName
1 col1 2 col2 3 col3
table B ID, col1, col2, col3, col4, col5
I want to select columns of B based on the value of table A. Example
Select col1, col2, col3 from B

No comments:

Post a Comment