COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: meeecog on 29 Jun 2015 11:21:13 AM

Title: Dynamic Column name in where clause - DB2
Post by: meeecog on 29 Jun 2015 11:21:13 AM
Hello All

This is in DB2
I have below requirement ..I want to implement in FM (possible) ..any idea's

Need to select level number from table A and get required columns from table B based on the value from Table A

Select emplid, level_number from table A ..example level is 2

In table B we have different columns like this level1 , level2 , level3 ..

now .select * from table B where level2 ='xxxx' ..
pls help me out on this