adspace


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

Equi join and non equi join is possible with sql server?

1140


What is subquery? Explain the properties of a subquery?

1072


How to connect php with different port numbers?

1203


How do I find the sql server version?

1118


What are the different types of subquery?

1240


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1032


Where can you add custom error messages to sql server?

1227


Why and when do stored procedure recompile?

1077


What are the different SQL Server Versions you have worked on?

1087


Explain system functions or built-in functions? What are different types of system functions?

1074


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1139


What is temporary table in sql server? Why we use temp table?

1030


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1210


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1223


Is it possible to have clustered index on separate drive from original table location?

1051