How can I query by quarterly, semi annual and annually...

I

ickat22

How can I query by quarterly, semi annual and annually... for example by year
of 2006..i'll do have a table coming from way back 1998.. can you pls help
me...
 
S

Stefan Hoffmann

hi,
How can I query by quarterly, semi annual and annually... for example by year
of 2006..i'll do have a table coming from way back 1998.. can you pls help
me...
You can use the DatePart() function in a query, e.g.

SELECT DatePart("q", [yourDateField]) AS Quarter,
[yourFields]
FROM [yourTable]
GROUP BY DatePart("q", [yourDateField])


mfG
--> stefan <--
 

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

Top