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

What are the different types of columns types constraints in the sql server?

1077


Which tcp/ip port does the sql server run on? How can it be changed?

1052


what is a self join? : Sql server database administration

1033


What are subqueries in sql server? Explain its properties.

1015


What is a user-defined function in the sql server and what is its advantage?

1100


Can you import Microsoft Excel data to SSRS?

132


What is row-level compre?

994


Explain what stored procedure sp_replcounters is used for? : sql server replication

1508


What is change data capture (cdc) feature?

1058


What is difference between delete and truncate commands?

1075


What is difference between sql and sql server?

994


Does order by actually change the order of the data in the tables or does it just change the output?

1141


What does nvl stand for?

940


Explain the commands in sql server?

1035


Explain active/passive and active/active cluster configurations?

1057