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

In what condition is it good to disable a trigger?

795


How do you create an update query?

742


Can we use insert statement in function?

784


What is oracle sql developer?

840


Is sqlite good enough for production?

791


Mention what pl/sql package consists of?

766


Does inner join return duplicate rows?

756


How to disable a trigger name update_salary?

963


What does count (*) do in sql?

777


How to use sql*plus built-in timers?

810


What is trigger types in sql?

763


how to create a new view in mysql? : Sql dba

733


What is join view in sql?

734


How to load data with sql*loader?

794


Can you load data into multiple tables at once? : aql loader

849