id's in every month

G

Guest

hi,
I have a table like this:

id date place

and i need a query like this:

place january february march .........

which shows me the id's in every month for every place.

thanks
 
G

Guest

What about the year of the month? do you want to sum the id per month?

You need to use a CrossTab Query, but youll need to sum on the id

Try this
TRANSFORM Sum(TableName.Id) AS SumOfId
SELECT TableName.Place
FROM TableName
GROUP BY TableName.Place
PIVOT Format([DateField],"mmm") In
("January","February","March","April","May" ,"June", "July", "August",
"September", "October","November","December")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

calculation in Report 1
Page Break after Change 1
Too Complex Error 5
Date Functions 6
Monthly format 2
6 month time bracket in report header 2
Problem with sum when zeroes are in field... 2
Attendance Count 4

Top