Here is what I am having troubles with.
I have a table "SalesAgents", and I have another table called "SoldProducts".
I want to select the salesAgents (*), and a summary of their sold products (two types, computer, monitor)
The relationship is 1 to many (SalesAgents to SoldProducts).
I want the statement to return something like this
SalesAgentInfo ie (firstName, lastName, etc.) as well as the products sold in sum format ie (computers=7, monitors=8)
I have been trying to do it the Inner Join way, but have had no success...
Any help would be apprciated
Thanks
FC
I have a table "SalesAgents", and I have another table called "SoldProducts".
I want to select the salesAgents (*), and a summary of their sold products (two types, computer, monitor)
The relationship is 1 to many (SalesAgents to SoldProducts).
I want the statement to return something like this
SalesAgentInfo ie (firstName, lastName, etc.) as well as the products sold in sum format ie (computers=7, monitors=8)
I have been trying to do it the Inner Join way, but have had no success...
Any help would be apprciated
Thanks
FC