Dear Sirs;
I'm trying to write SQL statement and it is not executing what I need.
tables are: customers(customerID, customerName)
Invoices(invoiceID,customerid,invoicedate,invoicea mount)
Receipt (receiptID,customerid,receiptdate,receiptamount)
using inner outer an left join is always making a combination on the query.
what i need is just to add to queries to each other for example:
invoiceID customerID invoicedate receiptamount receiptdate receiptID
22--------------171-----------1/1/2006-------------- 0 --------------0 -------------- 0
0----------------171--------------0-------------- -----120-----------1/2/2006---------21
0----------------171--------------0--------------------360-----------1/3/2006---------22
23---------------171----------1/4/2006--------------0 --------------- 0 ----------------0
The idea is to sort this query by date.
My relationship is connected table customers by invoices and customers by receipt (1 to infinity customerid to customerid(invoices and receipt))
I don't want any duplication in data.
does my relationship map me to this kind of query ?
Is there any feature that report in Access provide to such as queries?
Any help guys please please I read this articles many times
http://bytes.com/forum/thread608296.html and i don't think a single sql statement will help me
I WOULD BE MORE THAN HAPPY TO HEAR FROM YOU.
WASSIM S DACCACHE