StevoSimpson
Programmer
Hi, I'm having a slight problem in designing a query for a report.
I am creating a sales database, and the report I need to generate should loop through all the assistants, showing their sales grouped per day, and the item included in the sale (max of one per sale).
The tables look like this:
assistants(asstID,name)
sales(date,cost,asstID*,setID*)
set(setID, price, name)
Relationships:
assistants - sales is (1 - many)
sales - set is (many - 1)
I can get this query to work, almost.
In the result set is only the assistants that have made sales, but I need them all there, even if they have made none. Will I need to change the type of Joins on the tables? I don't think it should be too hard a problem, I just have no idea atm of what to do.
Any help is much appreciated.
Steven
I am creating a sales database, and the report I need to generate should loop through all the assistants, showing their sales grouped per day, and the item included in the sale (max of one per sale).
The tables look like this:
assistants(asstID,name)
sales(date,cost,asstID*,setID*)
set(setID, price, name)
Relationships:
assistants - sales is (1 - many)
sales - set is (many - 1)
I can get this query to work, almost.
In the result set is only the assistants that have made sales, but I need them all there, even if they have made none. Will I need to change the type of Joins on the tables? I don't think it should be too hard a problem, I just have no idea atm of what to do.
Any help is much appreciated.
Steven