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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Weighted score formula for views

Author  Topic 

freemefast
Starting Member

1 Post

Posted - 2010-03-13 : 15:53:48
Apologies if this is the wrong section to post or question has been answered before (I did run a search but it returned nothing)

Hi,
I am using sql server manager and want to calculate the weighted score of pupils exam and coursework marks.

I figured I would have;
-A coursework mark field (%)
-Then what percentage of the final mark it is worth say 65%
-A exam mark field (%)
-What percentage of the final mark it is worth say %35
-A weighted score field
-Whether it is a pass or fail

Could you please tell me the formula/code for inputting this into my view? I have looked around the web but not found a clear answer.

Thanks in advance,
F

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-13 : 16:46:10
You haven't posted your table structure and sample data, so it's not easy for us to write a solution for you.

These sound like homework questions though. We are happy to assist you with it, but you need to show some effort first.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -