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 do you maintain database integrity where deletions from one table will automatically cause deletions in another table?

1200


What are the disadvantages of indexes?

1091


What is raid, and how it can influence database performance?

1059


How to get @@error and @@rowcount at the same time?

1040


What is the use of custom fields in report?

1000


What is page in sql server?

953


What is query optimizer in sql server?

1029


Is it safe to delete log files?

926


What are the requirements to use odbc connections in php scripts?

1122


What do you mean by stored techniques? How would we use it?

1040


What is replication and database mirroring?

1052


Can a cursor be updated? If yes, how you can protect which columns are updated?

1114


What is create statement?

962


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

2367


How to verify a user name with sqlcmd tool?

1087