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

Write a query for primary key constraint with identity key word?

581


List few advantages of stored procedure.

544


What are the aggregate and scalar functions?

529


Mention the differences between sql server and mysql.

512


What is deploy, process and build? : sql server analysis services, ssas

579






What are triggers? How do you invoke a trigger on demand?

752


Can you insert NULL in unique column?

636


What is the command dbcc checkdb used for?

539


How do you create a data source?

481


Can coalesce return null?

552


What is explicit mode in sql server?

538


What is the difference between join and inner join?

543


What is a data source file?

505


What are different types of replication in sql server?

575


List the different normalization forms?

546