Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Development Tools
 calculate total for each quarter
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

175 Posts

Posted - 02/20/2014 :  08:45:51  Show Profile  Reply with Quote
I created a webpage that shows result of each quarter sale information....and I want to add sumary row of 4 quarters for the year; How do I write a code to calculate that?

The quarter field data format as '02Q08' (02=quarter 2, Q=quarter, 08=year 2008)


Flowing Fount of Yak Knowledge

2706 Posts

Posted - 03/18/2014 :  06:23:24  Show Profile  Reply with Quote
Why save the data in that format ?

Why not a row for each value ? You can use a gridview and customize the result sets based on the db values, using the object data source.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 2.98 seconds. Powered By: Snitz Forums 2000