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

Answer Posted / swamy

Distinct Clause:
---------------
Distinct Clause Will Eliminate the Duplicate data or Rows
when u r selecting from table .So it Produce the Data or
Rows with out Duplication.Generally Distinct Clause will
be Placed on the Column of the Table.

Group Clause:
-------------
Group Clause will group or pack the rows or data based on
the Column(S).

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are the ways available in sql server to execute sql statements?

727


Tell me the use of keyword with encryption. Create a store procedure with encryption?

752


What is executereader?

724


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

800


What is collation?

880






How to count duplicated values in a column in ms sql server?

700


What is sql service broker?

738


How to find the version of sql server? : sql server database administration

809


What are the security related catalog views? : sql server security

703


What do you mean by normalisation?

681


Explain different types of locks in sql server.

775


How do you debug a procedure in sql server?

634


What is outer join in sql server joins?

748


What is the difference RDBMS and Graph Database?

804


How to run sql server 2005 books online on your local system?

713