What is the difference between distinct clause and group by
clause?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Using the customer, and order table in northwind database, please write a query to produce xml?
What is an execution plan? When would you use it? How would you view the execution plan?
What do you understand by recursive stored procedure?
What is a not null constraint?
what authentication modes does sql server support? : Sql server database administration
Write a program to fetch first 10 records from a file?
Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration
What is the difference between login and a user?
13 Answers CTS, TCS,
If i am handling 150 servers then how to check the active jobs of all the servers?
Explain Geography datatype in SQL Server
What are the differences between decimal and float in ms sql server?
what type of indexes physically sort data?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)