Differences between UNIQUE and DISTINCT in select statements

Answer Posted / prabha

Distinct:
Its gives only the non duplicate values in a database table.
Unique:
The UNIQUE constraint uniquely identifies each record in a
database table.its similar to primary key.these values
cannot be repeated.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a procedure in a package be overloaded?

781


How does postgresql compare to oracle/db2/ms sql server/informix?

807


Do ddl statements need commit?

747


Where is pl sql used?

707


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

769


Can we use distinct and group by together?

806


What does the hierarchical profiler does?

786


Is pl sql a programming language?

741


What does sign mean sql?

790


What is a pl/sql block?

788


what does the t-sql command ident_current does? : Transact sql

762


What is the difference between sql, mysql and sql server?

726


What are all ddl commands?

772


what are the drivers in mysql? : Sql dba

766


Write a sql query to find the names of employees that begin with ‘a’?

772