cancel
Showing results for 
Search instead for 
Did you mean: 

Joins in multiple tables JDBC sender

Former Member
0 Kudos

Hello,

I have 3 tables M1, M2, M3. M1 and M2 are linked by a key m_id. M2 and M3 are linked by n_id. I need to write a join for a JDBC sender linking M1, M2 and M3. Any advise?

Sam

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

You need to basically write a SQL query joining the tables. Nothing related to XI specifically. That requires just SQL query expertise..!!

VJ

Former Member
0 Kudos

Thanks. Any sample queries available based on my tables and key fields. I would really appreciate it.

Sam

Former Member
0 Kudos

Hi Sam,

> Thanks. Any sample queries available based on my tables and key fields. I would really appreciate it.

Select <f1,f2,.. m_id, n_id...fn> from M1 M2 M3 where M1.m_id = M2.m_id and M2.n_id = M3.n_id.

Here f1,....m_id,n_id,.....fn are fields.

For more referrence check this link

http://www.psoug.org/reference/joins.html

Regards

Ramesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can write the query mentioned in this link as an example:

http://databases.about.com/od/sql/a/multiple_joins.htm

http://www.codeguru.com/forum/showthread.php?t=382050

Regards,

---Satish