What is the difference between distinct clause and group by
clause?

Answer Posted / rkvenky

distinct suppress the duplicates of data in the select stmt.
where as group by combines the data which we willgive in
order.
2.group by used at the end of select stmt
distint used in select stmt to columns
3.
group by is function where distinct is keyword

Is This Answer Correct ?    8 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is public role in sql server?

540


John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?

536


Which joins are sql server default?

516


How can sql server instances be hidden? : sql server security

599


What is the data tier application?

145






Does sql server use java?

523


Explain try...catch with sql server?

604


What are indexes in ms sql server?

558


How do I create a trace in sql server?

520


What are the types of database schema? : sql server analysis services, ssas

605


Tell me what are the advantages of using stored procedures?

572


Write SQL queries on Self Join and Inner Join.

621


What are distributed partitioned views?

627


What is snapshot parameter in ssrs?

109


What are partitioned views?

584