Differences between UNIQUE and DISTINCT in select statements

Answer Posted / hemasundar

Distinct:Its gives only the non duplicate values in a database table.
Unique:The UNIQUE constraint uniquely identifies each record in a database table.its similar to primary key.these values
cannot be repeated.But, nearly both are same...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get the number of records affected by a stored procedure?

564


tell me about various levels of constraint. : Sql dba

526


What are the two characteristics of a primary key?

483


what is cursor. write example of it. What are the attributes of cursor.

737


What are hotfixes and patches?

518






What is union and union all keyword in sql and what are their differences?

568


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

535


What is partition by in sql?

563


Describe different types of general function used in sql?

526


How can you load multi line records? : aql loader

650


Which language is used in sql?

514


What is microsoft t sql?

485


what is the difference between join and union? : Sql dba

541


Can we insert delete data in view?

535


what is error ora-03113: end-of-file on communication channel?

593