unless you are stuck on MSDE with a command line interface
SQl wise
There are a few ways to go I wouldn't recomend changing your source tables you'll have to restore to get them back when you make an arse of it. Not a dig, I wouldn't trust myself to get this right first time.
Even if you get the structure right, sods law says there's going to a be a few records which cause problems.
Insert Into Table1 Select ... From Table2
is one way Table 1 must exist.
Even nicer for this sort of thing is
Select into Table3 From Table1 Where ....
If you don't like Table3 just delete it
Drop Table Table3 in sql
Bear in mind that you'll need to add keys indexes, cehck constraints et al, select into will just give you a bare table.
So you could as a first go try
Select t1.acctnbr,t1.Giftref,t1.Gdate,t1.Paycode,t1.amt,t2,movtCode,t2.Fundid
Into Table3
From Table1 t1, Table2 t2
Where t1.Giftref = t2.giftref
Note This dropts tabl2.amount and assumes
that there are no giftrefs in table1 that arent in tabel 2 and vice versa
Ths problem fellas I alluded to earlier
Deal with them or bin them.
I've no feel for your data, but it looks to me like there should in a normalised design be more than one table, in fact possibly three
Accounts
Transactions
Gifts, but the column names could be leaving me with some nasty assumptions there. :D
HtHs