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

Define self join in sql server joins?

957


What are the filtered indexes?

1040


What do you mean by the term 'normalization'?

1215


How to select an exiting database using mssql_select_db()?

992


How can windows applications connect to sql servers via odbc?

1128


Can we delete data from a view?

928


Can we add an identity column to decimal datatype?

1002


Does sql server 2000 clustering support load balancing?

980


What is onf in normalization form?

1060


what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?

1061


What is microsoft sql server?

979


Explain what is sql server english query?

1055


What are system databases into sql server (2005/2008) : sql server database administration

1019


What is the stuff and how does it differ from the replace function?

1138


Explain left outer join and right outer join?

1044