How can I calculate Ratio using SQL?
468665Nov 28 2006 — edited Nov 28 2006Hi Friends,
I have table STUDENT with fields ROLL NO., NAME, AGE and SEX.
Table has 300 rows of students having SEX Males and Females,
How can I calculate ratio of Male and Female students from 300 records?
Ratio calculation is as, if there 200 Male and 100 Female out of 300 students, then Ratio between Male and Female is 2:1.
So kindly send me the code in SQL>, on urgently basis.
Best Regards,
Shahzad