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 Insert multiple rows with a single insert statement?

1099


Is null in sql server?

1042


Explain the steps to use transact-sql cursor?

1155


How to create dbo table in sql server?

1004


How do I start sql server 2016?

952


What are “lock” hints?

1104


What is the sql case statement used for? Explain with an example?

1039


What is difference between unique and primary key?

972


How to skip remaining statements in a loop block using continue statements?

1041


Is null vs coalesce?

927


Explain the categories of stored procedure?

980


How to change a login name in ms sql server?

1133


What is the purpose of the model database?

1065


How to change server name in sql server?

1252


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

1048