I am not terribly familiar with SQL/SQL Queries, but I am trying to prepare the following query:
SELECT T0.[DocDate], T0.[DocNum], T0.[CardName], T0.[NumAtCard], T1.[SubCatNum], T1.[Quantity], T1.[Price], T1.[LineTotal], T0.[DocStatus], T0.[U_ORDERED], T0.[SlpCode], T2.[Address], T2.[Address2], T2.[OwnerCode], T3.[LineTotal], T1.[Dscription] FROM [dbo].[ORDR] T0 INNER JOIN [dbo].[RDR1] T1 ON T0.DocEntry = T1.DocEntry, OINV T2 INNER JOIN RDR3 T3 ON T0.DocEntry = T3.DocEntry
I get the following error message:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]The multi-part identifier "T0.DocEntry" could not be bound.
2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared. 19/06/2014 11:25:36 -1
What am I doing wrong??
Thanks in advance,
Courtney