Summarize Data with SQL statement
        Posted  
        
            by bugbug
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by bugbug
        
        
        
        Published on 2010-05-26T15:44:46Z
        Indexed on 
            2010/05/26
            16:01 UTC
        
        
        Read the original article
        Hit count: 166
        
I have CMS table that contain CMS_STARTTIME and CMS_STOPTIME (attachment). 

I want to create report to summarize exist data by using Date, Time and Year as Parameter (attachment). 

I don't know how to create sql statement to meet this requirement. I'm using MySQL and MS-SQL.
Does one can help? 
Thank you very much.
© Stack Overflow or respective owner