Well, basically you need to know 3 things. 1. All tables are "extending" from Common, so you can declare a variable of type Common myTable; and any record of any table will be able to fit in it. and later use it as if it was the specific table you need while select myTable { //processing }...