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

Can primary key be a foreign key?

763


What is instead of dml trigger?

774


How to connect a database with sql express.?

750


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

712


query processing

1921






What are the different editions available in sql server 2000?

763


How to fetch the next row from a cursor with a "fetch" statement?

790


What is key set driven?

704


Explain partitioned view?

811


How do triggers work?

692


How do I uninstall sql server 2014?

679


What is the security model used in sql server 2005?

694


What do you mean by an execution plan? Why is it used? How would you view it?

708


What is CTE in SQL

706


what's the information that can be stored inside a bit column? : Sql server database administration

723