G
Guest
I know there are several questions on this subject, but I can't seem to grasp
the concept here.
I'm trying to design a query that shows the Top X Revenue dollars Per
Quarter, Per Region (East and West). So if I wanted the top 10, the query
would show 40 records for each Region (10 for each quarter).
Here's how I have my SQL set up now:
SELECT TOP 10 [Area], [Account], [ECG Revenue], [AGS Revenue], [Signed
Date], [Rev Rec Date], [Rev Rec Quarter], [Product], [OTN]
FROM [NAR All]
WHERE [Rev Rec Quarter]="2nd Quarter"
ORDER BY [ECG Revenue] DESC , [OTN];
I try to mess with the WHERE clause by putting an "AND", or an "OR", but
that does not work.
Please help.
Frank
the concept here.
I'm trying to design a query that shows the Top X Revenue dollars Per
Quarter, Per Region (East and West). So if I wanted the top 10, the query
would show 40 records for each Region (10 for each quarter).
Here's how I have my SQL set up now:
SELECT TOP 10 [Area], [Account], [ECG Revenue], [AGS Revenue], [Signed
Date], [Rev Rec Date], [Rev Rec Quarter], [Product], [OTN]
FROM [NAR All]
WHERE [Rev Rec Quarter]="2nd Quarter"
ORDER BY [ECG Revenue] DESC , [OTN];
I try to mess with the WHERE clause by putting an "AND", or an "OR", but
that does not work.
Please help.
Frank