Differences between UNIQUE and DISTINCT in select statements

Answer Posted / hemasundar

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.But, nearly both are same...

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 data manipulation language?

921


What are field types?

755


What is mdb stand for?

803


Explain the advantages and disadvantages of stored procedure?

894


What is a boolean in sql?

759


What is a natural join sql?

754


Explain the difference between cursor declared in procedures and cursors declared in the package specification?

809


how can we know the count/number of elements of an array? : Sql dba

822


Why indexing is needed?

780


what are different types of collation sensitivity? : Sql dba

806


how to create a test table in your mysql server? : Sql dba

743


Why do we use partitions in sql?

777


What is right join in sql?

787


What are sql procedures?

807


What is a stored procedure in sql with example?

827