Thank this author by sharing:
By SRIKANTH & SUBIN, 2010/06/23
Call this function in your SP.Pass the arguments and get the result.
We searched a lot in WWW but could not find a code in SQL to find ratio.
When we wrote this simple thing..We thought letz share it across.Sharing is Expansion.
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.
Join us!
Steve Jones Editor, SQLServerCentral.com