SelectTableCollection Class
Represents a collection of tables and subqueries in a 
SelectStatement object.
In the following sample we retrieve a collection of SelectTables from an DB2SelectStatement object 'statement' and print them. For example, if statement represents the command
SELECT * FROM test.dept tDept,test.emp tEmp
the output of the sample would be the following:
test.dept tDept
test.emp tEmp
            
             
    
	
	    
	    SelectTableCollection collection = statement.Tables;
foreach (SelectTable table in collection)
        Console.WriteLine(table.ToString()); 
 
    
	
	    
	    Dim collection As SelectTableCollection = statement.Tables
For Each table In collection
        Console.WriteLine(table.ToString())
Next