Differences between UNIQUE and DISTINCT in select statements

Answer Posted / gvmahesh

unique is a constraint it's declare for preventing the data
duplication.we create it along with table creation.
DISTINCT is a clause it is used for retrieving the data
without duplication.but it can't prevent the data
duplication.It just hiding the duplicated data.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

1895


What is serial sql?

701


Can we use loop in sql?

727


What are the sql versions?

672


How is data stored in sql?

731






How exception handling is done in advance pl/sql?

672


How many types of literals are available in pl sql?

752


what is a trigger? : Sql dba

762


What is the usage of the distinct keyword?

895


how to rename an existing column in a table? : Sql dba

695


Is inner join faster than left join?

876


what is a control file ? : Sql dba

759


What is hibernate and its relation to sql?

789


What is percent sign in sql?

929


What is sap sql anywhere?

680