Posts

Showing posts with the label MS SQL Server

Distinct count in MS SQL

The below code will retrieve distinct count from a table in SQL select ename, count(ename) from emp Group by ename having (count(ename)>1)