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 / hitesh kumar vyas s

Performance wise Distinct is more effective than group by.
Since in group by it has to group and then provide the
result but this is not the case in distinct

Is This Answer Correct ?    3 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does partitioning improve performance sql server?

1026


Explain what is dbcc?

1067


Explain various data region available in ssrs with their use?

984


How network traffic be reduced by using the stored procedure?

1171


What is a partitioned view?

1051


what is the system function to get current user's user id? : Sql server database administration

1048


Explain Reporting Life Cycle?

132


what's the difference between a primary key and a unique key? : Sql server database administration

991


how you can list all the tables in a database?

1067


Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

1051


What is @@rowcount in sql?

1056


Can you explain about buffer cash and log cache in sql server?

998


How do I create a partition table in sql server?

1182


Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

1030


How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication

1122