on 07-16-2012 11:44 AM
I have made the following SQL query. But for some reason, I am not able to see any invoices older than September 2011. I havent given any criteria or filters for the dates. I do know that there were loads of item invoices posted since 2009. Can anyone help me with this a.s.a.p.
My SQL Query:
SELECT DISTINCT "OINV"."DocNum", "OINV"."DocDate", "OINV"."CardCode", "INV1"."ItemCode", "INV1"."Dscription", "INV1"."Price", "INV1"."DiscPrcnt", "INV1"."Quantity", "INV1"."LineTotal", "INV1"."LineVat", "INV1"."ShipDate", "OINV"."DocTotal", "OINV"."VatSum", "INV1"."BaseRef", "OINV"."NumAtCard", "OINV"."Address", "OINV"."CardName", "OINV"."TotalExpns", "OINV"."Address2", "OINV"."DocEntry", "OINV"."GroupNum", "OINV"."ExtraDays", "OINV"."CntctCode", "OINV"."DocDueDate"
FROM "Live"."dbo"."OINV" "OINV" INNER JOIN "Live"."dbo"."INV1" "INV1" ON ("OINV"."OwnerCode"="INV1"."OwnerCode") AND ("OINV"."DocEntry"="INV1"."DocEntry")
ORDER BY "OINV"."DocNum"
Thank you very much in advance for looking into this for me.
R
there is no WHERE condition which makes me think that either one or both tables don't have any records for years 2009/2010
have you checked the raw data?
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simone,
It looks like when we upgraded our SAP system to integrate with Accellos, we transferred all the stock items at the end of last year. The invoice records since the end of last year appears in this layout. But not the ones prior to it.. So I am not sure what might have caused this error.
Thanks
Raahat
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.