How to get multiple records to show as one

accessiscool

New member
Local time
Today, 06:46
Joined
Aug 22, 2012
Messages
4
Hi there,

I have a query which is supposed to show the revenue from each advertising source.

PLease see attached in zip file (cant post pics b/c I have less than 10 posts)

As you can see it has revenue amounts for the same source of advertising:


Radio has two amounts, INternet has two etc..


What can I do to only have each form of advertising show up once?

and the revenue amounts summed up for each advertising medium.

Thank You

Natasha
 

Attachments

  • adquery.jpg
    adquery.jpg
    35.4 KB · Views: 108
And this is the SQL

Code:
SELECT [How they heard a...], sum(Revenue) as SumRevenue
FROM [Revenue per car purchased] 
GROUP BY [How they heard a...]

You need to change [How they heard a...] and also table name [Revenue per car purchased] if different.
 

Users who are viewing this thread

Back
Top Bottom