SQL Server Forums
Profile | Register | 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
 New Topic  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  
 New 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 0.03 seconds. Powered By: Snitz Forums 2000