Differences between UNIQUE and DISTINCT in select statements
Answer Posted / pravin d. survase
UNIQUE is only used in oracle but,
DISTINCT is used in all RDBMS.
UNIQUE is used in SELECT statement and as KEY also.
DISTINCT is only used in SELECT.
DISTINCT KEY concept is not present in SQL/ORACLE.
UNIQUE also supress the duplicates but, UNIQUE KEY will
allow the duplicates.
DISTINCT supress the duplicates.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Why do we use procedures in sql?
Explian rowid, rownum?
how does a local variable is defined using t-sql? : Transact sql
What is difference between pls_integer and integer?
Who developed sql?
Explain what is sql?
What is a sql instance vs database?
How to pipe multiline string to isql?
Can there be more than one function with a similar name in a pl/sql block?
What is form and report?
Is sql considered coding?
What is an inner join sql?
What are secondary keys?
Which are the different case manipulation functions in sql?
how do you tune the slow running queries in oracle db , explain the methodology