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

What is the command used to fetch first 5 characters of the string?

1145


How does pl sql work?

723


How to execute a stored procedure?

789


what is query cache in mysql? : Sql dba

794


What are the different types of triggers?

819


What is the difference between drop and truncate commands?

749


How do I create an index in word?

762


What is difference between mysql and postgresql?

739


What is cursor in pl sql with examples?

708


Why are aggregate functions called so?

709


Is pl sql and postgresql same?

807


What is difference between joins and union?

786


What is the difference between pl and sql?

769


What is oracle and pl sql?

867


Does view contain data?

813