How to get the count of distinct records. Please give me the
query?
Answer Posted / pradyumna
select distinct colname,count(colname) from tbl group by
colname
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a view in sql?
What is the contrast between sql and pl/sql?
What are the rules to use the rowguidcol property to define a globally unique identifier column?
Explain the use of containers in ssis?
Tell me what is log shipping?
How do we Backup SQL Azure Data?
When columns are added to existing tables, what do they initially contain?
How can we use ConnectorJ JDBC Driver with MS SQL?
What are the advantages of sql azure?
What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas
What is executereader?
What is the difference between Stored Procedures and triggers?
What are the pre-defined functions in the sql server?
How to list all user defined functions in the current database?
Can we add an identity column to decimal datatype?