Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql query to find difference between total no. of rows and distinct rows in sql server

select (count(column_name) - count(distinct column_name)) from table_name;
 
PREVIOUS NEXT
Tagged: #sql #query #find #difference #total #rows #distinct #rows #sql #server
ADD COMMENT
Topic
Name
4+2 =