troubleshooting Question

Calculating Percentage in SQL

Avatar of tddeffner
tddeffner asked on
Visual Basic ClassicMicrosoft SQL Server 2005SQL
23 Comments1 Solution837 ViewsLast Modified:
Hey All.

I am trying to write a sql statement that calculates a percentage from 2 columns and display the percentage in the third column.  IThe problem I seem to be having an issue with rounding, if they got 100% it displays but say if they got 24/25 it returns a 0.  I think it has something to do with rounding.

Any Suggestions?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 23 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros