Quote:
|
Originally Posted by charles18
In one tableset i have 200 tables.
can i join all the 200 tables or can I join all the tables inside the tableset?
how can i find the unique variable to join?
|
If you are referring to NATURAL JOIN: no, DB2 does not support "automatic" selection of join columns. The concept of natural join is generally considered "dangerous" and "better not used".
Back to DB2: you will have to spell out all 200 table names, and also all (at least) 199 join conditions.
Apart from that, joins of up to 225 tables are possible (at least, with DB2 on z/OS from version 8 on).