Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

SELECT help needed

$
0
0
Hi,

I'm not sure how to do what I need so maybe someone here will know.

I have a table with the following fields:

SalesName
SalesDate
SalesAmount

There can be multiple sales for each sales people each month. And not each month has the same sale people. I want to show a list of the total sales for January for each salesName, then the same for Feb, etc. for a few months ahead. How do I do this without knowing the salesName of everyone? If I know that I could write a select with sum for each sales person and then union the results. That is probably slow though.

Thanks!

Warren

Viewing all articles
Browse latest Browse all 2918

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>