Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting table Dynamically in Joins

Former Member
0 Kudos

Hi,

i wanna select database table dynamically....im using joins to retrieve the data.

for eg:

select tab1~field1

tab1~field2

tab2~fiield3

innerjoin on

.......................

...................

where .................

...................

Im using use 2 other tables pulling the same data..i wanna select them dynamically.so that i can use only one select statement instead of writing 3 .

plz advise..

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I tried doing this before a few days. As far as I know, there is no way of using dynamic table names in joins. In normal selects, as you might know, this is possible. But in join it does not allow.

Regards,

Prakash.K

2 REPLIES 2

Former Member
0 Kudos

Hi,

I tried doing this before a few days. As far as I know, there is no way of using dynamic table names in joins. In normal selects, as you might know, this is possible. But in join it does not allow.

Regards,

Prakash.K

0 Kudos

Thanks for your reply..

thanks