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

Can we perform backup restore operation on tempdb? : sql server database administration

944


Why use identity in sql server?

1008


Explain the difference between cross join and full outer join?

921


Can you explain the disadvantages/limitation of the cursor?

905


Can we use custom code in ssrs?

1055


Can foreign key be deleted?

870


Mention the 3 ways to get a count of the number of records in a table.

917


Once setting replication, is it potential to own a publisher as sixty four bit sql server and distributor or subscribers as a thirty two bit sql server?

944


How to Sync Two SQL Azure Databases?

119


What is the Disadvantage of indexed sequential file.

1026


How you can get the list of largest tables in a database?

942


How to execute a stored procedure in ms sql server?

1068


What is difference between Datepart() and Datename() in SqlServer?

1156


What is temporary stored procedure?

895


Explain an automatic checkpoint

909