Hi All,
I need to SELECT the rows of 'billing_temp' that doesn't exist in 'billing' based on two columns.
Currently I come-up with this query:
SELECT ControlNum, CarrierName, PhoneNum, PatientName, SubscriberID, SubscriberName,
ChartNum, DoB, SubscriberEmp, VisitID, ServiceDate, ProviderName, CPTCode, BillingDate,
AgingDate, BalanceAmt, Age, AgeCategory FROM billing_temp LEFT JOIN billing
USING (ControlNum, CPTCode) WHERE billing.ControlNum=billing_temp.ControlNum AND
billing.CPTCode=billing_temp.CPTCode
But I'm getting the error:
Column 'ControlNum' in fieldlist is ambiguous.
Does anyone faced this occurrence.
If you need further details to recover this, inform me.. Help me. Thanx in advance..
NOTE :
I'm so sorry that I've found what is the problem in my own query.. Thanks for all who paid interest in my question and sent the answer..