Events tbl TargtNo EventTypes CompNo AccountNo 1 SC1 11 123 2 SC2 11 123 3 SC3 11 123 Company tbl:- CompNo Name Address1 Address1 Postcode Sales 11 ABC Addr1 Addr2 AF12WE 100
EventTypes tbl Code Desc SC1 SalesCall-1 SC2 SalesCall-2 SC3 SalesCall-3
When trying to run the following qry, it is simply multiplying the [Sales] figure by 3.
SELECT EV.[AccountNo], SUM(COMP.[Sales]), COUNT(EV.[EventTypes]) FROM Events EV Inner Join [Company] COM ON EV.[CompNo] = COM.[CompNo]
Sure, it must be a simple fix but unable to track it down.