Differences between UNIQUE and DISTINCT in select statements

Answer Posted / chandra sekhar

the diff between unique and distinct is
unique is applied before insertion and retrival.it consists
of non duplicate values.if unique constraint is given it
does not take duplicate values.distinct is used in retrival
it gives the suppressed row(ex if two rows are same it will
show single row and non duplicate row) therefore distinct is
the combination of suppressed duplicate and non duplicate rows.

Is This Answer Correct ?    35 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are packages in pl sql and also explain its advantages?

520


How do I find duplicates in sql?

496


How do you bind variables in pl sql?

569


what are rollup and cube in t-sql? : Transact sql

652


How do you optimize a stored procedure query?

559






what is the difference between where clause and having clause? : Sql dba

526


what is 'mysqlimport'? : Sql dba

566


What are the three pl sql block types?

562


Why having clause is used in sql?

530


Does pl/sql support create command?

570


What are sql commands?

492


What are triggers in sql?

574


How global cursor can be declare with dynamic trigger ?

1739


What does the hierarchical profiler does?

559


What is the need of a partition key?

527