How can I count and group by between two date?

Posted by user359991 on Stack Overflow See other posts from Stack Overflow or by user359991
Published on 2010-06-07T02:02:00Z Indexed on 2010/06/07 2:12 UTC
Read the original article Hit count: 188

Filed under:
|

For example, the start date = '20100530' and the end date = '20100602'

How can I write a SQL to display the below result?

month: may, 2 days
month: June, 2 days

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server