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

How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

597


What are clustered and non-clustered index?

633


What is the use of @@spid?

656


Can sql servers linked to other servers like oracle?

622


Explain different backup plans?

618






How to create a simple stored procedure in ms sql server?

597


How to change server name in sql server?

675


Is resultset an interface?

632


How to Insert multiple rows with a single insert statement?

635


What are the types of processing and explain each? : sql server analysis services, ssas

810


How can you fetch alternate records from a table?

625


How to remove duplicate rows from table?

711


What is a mixed extent?

691


How to enter binary string literals in ms sql server?

704


How can you hide the sql server instances?

631