Monday, February 20, 2012

Percentage Help

I need to write a page that figures out the percentage of students passing an assessment item where students are from a particular school, grade, gender, and are not medically exempt.

I did a Count Statement on all test taker, and another Count Statement for the number passing the item who were not exempt. Both of the statements are shown through seperate datalist controls. I then want to get the percentage by dividing the number passed by the number taken and mulitplying that by 100.

Is there a better technique or can I do this in a sql statement somehow?

Show your table or tables here. Which version of SQL Server are you using? 2000 or 2005?

No comments:

Post a Comment