Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / madhavi.bandreddi

select count(*) from (select distinct * from tablename)as
dummytable

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I know if localdb is running?

953


What is default constraint?

995


What are the triggers in sql?

1105


how we use window authentication connection with sql server.?

1152


List down some advantages of sql stored procedure?

966


Explain what is the difference between a local and a global temporary table?

1003


What does <> symbol mean?

974


What is page in sql server?

947


what is a default tcp/ip socket assigned for sql server? : Sql server database administration

1069


What is difference in performance between insert top (n) into table and using top with insert?

1045


Explain go command in sql server?

1036


A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?

962


What is rs.exe utility?

156


How to send a ssrs report from ssis?

176


Is it possible to create trigger on views?

981