How to get the count of distinct records. Please give me the
query?

Answer Posted / name

select count(distinct columnname) from table ,this is correct as i checked the query

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what guidelines should be followed to help minimize deadlocks?

531


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

550


What the difference between UNION and UNIONALL?

567


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

629


How to download and install sql server 2005 books online?

534






Explain comment on transactions?

549


Can you explain what is sql server english query?

534


How to remove duplicate rows from table?

587


What is the difference between osql and query analyzer?

540


If any stored procedure is encrypted, then can we see its definition in activity monitor?

542


What area unit the various kinds of info compression introduced in sql server 2008?

564


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

517


What is sharding?

88


Mention the uses of stored procedures.

563


How to find table changes in sql server?

654