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 dcl in sql?

520


Which is better trigger or stored procedure?

492


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

635


How are functions and procedures called in PL/SQL?

582


What is the execution plan in sql?

542






What is the function that is used to transfer a pl/sql table log to a database table?

540


What is the use of partition by in sql?

508


Is json a nosql?

528


What does pl sql stand for?

649


what is bcp? When does it used? : Sql dba

511


What are tables and fields?

577


How do you create a unique index?

557


describe mysql connection using mysql binary. : Sql dba

535


how can we repair a mysql table? : Sql dba

532


What are the types of join in sql?

512