adspace


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

How to provide default values to function parameters?

1278


How raid can influence database performance?

1132


Explain “row_number()” in sql server with an example?

1088


How to rebuild the master database?

1175


Where can you add custom error messages to sql server?

1227


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

1074


What is the primary use of the model database?

1161


What is acid mean in sql server?

1257


How do I find query history in sql server?

1036


What are the source of constraints?

1018


What is clustered index

1100


How can you append an identity column to a temporary table?

1080


what is spatial nonclustered index

1066


Why and when do stored procedure recompile?

1077


When should you use an instead of trigger?

1062