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

What are the difference between “where” and “having” clause in sql server?

1062


How to get all stored procedures in sql server?

993


What are three major types of constraints?

1109


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

1022


Tell me what do we need queues in sql service broker?

982


What is the difference between createstatement and preparedstatement?

930


Explain what are various ways to enhance the ssrs report?

1038


What are the new scripting capabilities of ssms? : sql server management studio

1055


Explain how does the report manager work in ssrs?

949


How do you implement session management in SQL Server mode?

1091


What happens if ntwdblib.dll is missing on your machine?

1139


What is the downside of using udf?

1099


What is delete query?

935


Explain powershell included in sql server 2008?

1046


What are the differences between substr and charindex in sql server.

1102