Differences between UNIQUE and DISTINCT in select statements

Answer Posted / narendrasai

UNIQUE: it is a constraint and it was created at the time of table creation, where as

DISTINCT: it is a word used at the time of selection.

So both are same, but usage of both the words are different

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the unique index?

519


Is sql a case sensitive language?

506


How many types of relationship are there?

540


Is sqlexception checked or unchecked?

532


What are the different types of dbmss?

550






What has stored procedures in sql?

591


What is difference between sql and oracle?

553


What is sql resultset?

523


what is the difference between rownum pseudo column and row_number() function? : Sql dba

608


What is dense_rank in sql?

533


What are the disadvantages of file system?

609


What is the purpose of cursors in pl/sql?

631


What are types of joins?

528


What is sqlite format?

622


Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?

527