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...

In performance wise distinct is good or group by is good?
eg:select name from emp group by name;
select distinct name from emp;

Answer Posted / anil sharma

Group apply before where clause and distinct apply after
where clause.
So group by is good.

Is This Answer Correct ?    4 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get a list of columns in a view using the "sp_help" stored procedure?

991


What are cascading parameters in ssrs reports?

212


What kind of problems occurs if we do not implement proper locking strategy?

1358


What is normalization of database?

1021


what is a sub-report?

132


How can you list all the table constraints in a database?

885


Explain multiserver query

964


Explain table valued parameters in sql server? Why tvp used?

967


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

853


What is the advantage of sql server?

989


While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?

109


What is the new security features added in sql server 2014? : sql server security

946


Explain transaction server consistency?

923


Can you roll back the ddl statement in a trigger?

915


What is ssrs?

117