Differences between UNIQUE and DISTINCT in select statements

Answer Posted / manoj

UNIQUE(Constraint):- Can be only once for a column in a
table


DISTINCT(Clause):- Useed in select query to retrive distinct
(non repeated) data from table(s)

Is This Answer Correct ?    114 Yes 68 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope and visibility in PL/SQL?

782


What is the source code of a program?

720


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

848


Are sql database names case sensitive?

700


What is a field in a database?

767


What are procedures used for?

714


Can we change the table name in sql?

714


what are ddl statements in mysql? : Sql dba

787


What are different types of sql commands?

703


what are tables and fields? : Sql dba

778


Why having clause is used in sql?

734


What is the use of triggers?

744


What is the need of merge statement?

775


When is the explicit cursor used ?

775


What is a loop in sql?

751