I have two tables as follows:
TABLE A TABLE B StuID | actid FacID | actid 3 12 98 17 5
You want UNION ALL:
(SELECT * FROM tablea) UNION ALL (SELECT * FROM tableb)
I think those parenthese are correct. I remember MySQL being fussy about this.