Week

B

Bob

I want sort date by weeknumbers. So i have a query that show me the
weeknumber and the meldingen that are made in that week.

The code i use is :

select datevalue(datum) AS DATA, count(melding.id) AS AantalvanID
From Melding
Group by datevalue(datum);
 
J

Jerry Whittle

SELECT DatePart("w",DateValue(datum)) AS DATA,
Count(melding.id) AS AantalvanID
FROM Melding
GROUP BY DatePart("w",DateValue(datum))
ORDER BY 1 ;
 

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