I am really new to SQL and need help formating a percentage. I want to divide(Always whole numbers) count1 by count2. For example 3/11 = 27.27 then round it to 27.
Here is what I have tried
CONVERT(DECIMAL(18,2),(SUM(count1)/(Sum(count2)))
As you can see I am pretty lost. Any help would be greatly appreciated.
Here is what I have tried
CONVERT(DECIMAL(18,2),(SUM(count1)/(Sum(count2)))
As you can see I am pretty lost. Any help would be greatly appreciated.