# question

## need help to find ratio

Hi, I need a small help from the Ask SSC members. I need to find the ratio using sql and print it in the output. The scenario is i have a total of 1800 records and i have splitted the whole 1800 records into two portions. One part will have 1200 records with the company name a and the company name b will have remaining 600 records. I am able to get the output in the following format ![alt text] i want to find the ratio of the two number 1200 and 600. Can anyone please help me in this regard? : /storage/temp/241-\untitled.gif
\untitled.gif (10.6 KiB)

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

what does the ratio refer to? What is it the ratio of, to?
1 Like 1 ·
Karthik, you have edited your question (and removed the example output), but still not fully explained how you want to find the ratio. Given the data above, what result are you expecting?
0 Likes 0 ·
Hi, i need the ratio of the two numbers 1200 and 600 in row 1 and 2. The ratio needs to be displayed in a new column after the column with heading "Count". The ratio of 1200 and 600 will be 2:1 and it needs to be displayed after the count. I have function to find the ratio of the two numbers. but since i dont want to use function i want to find the ratio using the normal mathematical calculations if possible.
0 Likes 0 ·
So my answer below works for you then?
0 Likes 0 · 