Need more, need help now?
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals

Search found 5 matches

by UncleTupelo
14 Oct 2011, 07:27
Forum: Sage 50 UK version General Help
Topic: Report - how to find an Items paid date
Replies: 9
Views: 18322

Re: Report - how to find an Items paid date

Well, in the end it didn't work completely via SQL as the Sage ODBC driver doesn't seem to support DISTINCT and the GROUP BY seems flaky.

So I basically run this query (there is a lot of 'stuff' from various tables):


SELECT
AUDIT_HEADER.TRAN_NUMBER,
AUDIT_USAGE.DATE
and a lot more stuff
FROM ...
by UncleTupelo
13 Oct 2011, 07:13
Forum: Sage 50 UK version General Help
Topic: Report - how to find an Items paid date
Replies: 9
Views: 18322

Re: Report - how to find an Items paid date

Yay! The join (all table) at the beginning of the SQL statement does work. Odd that joining sequentially (in my previous example) doesn't.

Anyway, that is what I need.

Thanks a lot - excellent forum service! :P
by UncleTupelo
12 Oct 2011, 15:00
Forum: Sage 50 UK version General Help
Topic: Report - how to find an Items paid date
Replies: 9
Views: 18322

Re: Report - how to find an Items paid date

Just SQL. JOIN, INNER JOIN, LEFT JOIN, LEFT OUTER JOIN. Nothing works.

The Sage ODBC driver is pretty awful (as is the general db schema - I guess no one at Sage HQ is big on normalisation) and very restrictive - which is why Sage are not keen to support it, even through the developer program ...
by UncleTupelo
12 Oct 2011, 14:18
Forum: Sage 50 UK version General Help
Topic: Report - how to find an Items paid date
Replies: 9
Views: 18322

Re: Report - how to find an Items paid date

Ah yes. Thanks a lot John (and Bruce) that makes perfect sense.

I ran some queries and I can now see how the allocation\reconciliation model works.

However, I tried joining all 3 tables (AUDIT_HEADER, AUDIT_SPLIT, AUDIT_USAGE) to get all the info I want.


SELECT
stuff
FROM AUDIT_SPLIT ASP
JOIN ...
by UncleTupelo
12 Oct 2011, 10:57
Forum: Sage 50 UK version General Help
Topic: Report - how to find an Items paid date
Replies: 9
Views: 18322

Report - how to find an Items paid date

Good Morning,

I am using Sage 50 on 2010 (don't think what version I use makes much odds as the data model seems almost identical between versions) and need to export the all the item data (open or closed recently, for sales and purchase ledger).

It would appear the AUDIT_HEADER table has all the ...