I have two tables as follows:
TABLE A TABLE B StuID | actid FacID | actid 3 12 98 17 5
its too easy select tableA.stuId,tableA.actId, tableB.facId,tableB.actId from tableA,tableB where tableA.actid=tableB.actid;`
select tableA.stuId,tableA.actId, tableB.facId,tableB.actId