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

Answer Posted / gouri

SELECT count(*) FROM
(SELECT distinct ngcode FROM donation )d

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How extra digits are handled with numeric data type literals?

517


Which are the important points to note when multilanguage data is stored in a table?

509


Can you explain different types of joins?

539


How to update values in a table with update statements in ms sql server?

549


Why normalization is used?

544






how many type of indexing in database?

569


Explain view in sql server?

612


What does truncate do?

526


What is an entity-relationship diagram (erd)?

579


What is the bookmark lookup and rid lookup?

564


difference between Clustered index and non clustered index ?

567


What is sql server 2000 work load governor?

550


code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that

1750


What does this statement do @@rowcount?

543


What is molap and its advantage? : sql server analysis services, ssas

537