Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
Nice tip :)But if you have any column say empid which have the unique constraint then it is better to use the following SQL queryselect count(distinct empid ) from employees
Ravikiran Malladi is a senior software professional in Microsoft technologies. He has global IT experience of over 10 years and has compulsive habit of writing tools, particularly for the projects he works on. He has vast experience in the roles of senior developer, technical analyst, technical architect besides in technical lead roles.
His hobbies include chess, music, cricket, web sites along side writing technical articles and technical blogs.