yguyon
Starting Member
11 Posts |
Posted - 2014-12-12 : 13:21:17
|
I have this query UPLOAD AS and I would like to populate a third table Acct_PaymentechAR with its results. Not sure how to do it. UPLOAD AS ( SELECT BatchID,DateTransaction,CardType--,Last4 ,AuthCode,TransType, RIGHT(CARDHOLDER,4) As 'Last4' ,PaymentechAmount,PaymentechOrderId --,DateUploaded,CARDHOLDER FROM [AcctDept].[dbo].[Acct_PaymentechARTest] EXCEPT SELECT BatchID,DateTransaction,CardType,Last4,AuthCode,TransType,PaymentechAmount,PaymentechOrderID FROM [AcctDept].[dbo].[Acct_PaymentechAR] ) UPLOAD AS ( SELECT BatchID,DateTransaction,CardType--,Last4 ,AuthCode,TransType, RIGHT(CARDHOLDER,4) As 'Last4' ,PaymentechAmount,PaymentechOrderId --,DateUploaded,CARDHOLDER FROM [AcctDept].[dbo].[Acct_PaymentechARTest] EXCEPT SELECT BatchID,DateTransaction,CardType,Last4,AuthCode,TransType,PaymentechAmount,PaymentechOrderID FROM [AcctDept].[dbo].[Acct_PaymentechAR] ) |
|