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

What is offset in sql query?

865


what is normalization? : Sql dba

766


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

1766


What is data type in sql?

756


Can a trigger call a stored procedure?

775


Is sql a backend?

796


Is primary key is clustered index?

746


what is sql in mysql? : Sql dba

868


What is cte?

753


Which is faster union or join?

732


What are reports usually used for?

791


How many types of triggers are there in pl sql?

808


What is normalization in a database?

886


how would concatenate strings in mysql? : Sql dba

769


i have some prob lem to tell me about my self in interview first round ...

1917