I have two tables as follows:
TABLE A TABLE B StuID | actid FacID | actid 3 12 98 17 5
You can concatenate these two tables by using select, from and where.
select
from
where