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

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Table Design question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Netjunkie
Starting Member

17 Posts

Posted - 01/20/2014 :  07:00:05  Show Profile  Reply with Quote
Hello Folks,

Please help me design the table structure to store a report which comes to me in the below format.



Notice that the Goal and Monthly values for each title have a different data types.
There are several other rows (with same/different types) in the report but I have posted just a few.

Do let me know if you need any further clarification on the issue.

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 01/20/2014 :  07:02:14  Show Profile  Reply with Quote
Cant these quantities be derived from some base quantities? ie using hours etc information

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

Netjunkie
Starting Member

17 Posts

Posted - 01/20/2014 :  07:03:50  Show Profile  Reply with Quote
Unfortunately No.
These values once stored in the database will be the base for deriving other metrics.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 01/20/2014 :  07:26:29  Show Profile  Reply with Quote
Then store all the values in decimal format with scale value of 2 (2 decimal places). then in report apply required formatting to show the values in your desired format.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

Netjunkie
Starting Member

17 Posts

Posted - 01/20/2014 :  23:59:56  Show Profile  Reply with Quote
The report will still have to look similar to this. How can i apply column level formatting on different types?
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