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

Is it possible to create trigger on views?

972


How to create a local temporary stored procedure?

998


Explain following error properties?

1014


Mention a few common trace flags used with sql server?

927


How to use subqueries in the from clause in ms sql server?

1162


How to create a view on an existing table in ms sql server?

1126


How to add more data to the testing table in ms sql server?

1082


What do we have to check in database testing?

1019


What is scd (slowly changing dimension)? : sql server analysis services, ssas

1008


What is the need for group functions in sql?

1081


How many databases instances are there in sql server 2000?

1096


Does sql server use t sql?

1015


How do you implement session management in SQL Server mode?

1099


What is sql server query analyzer?

1028


Where is trigger in sql server?

1043