Differences between UNIQUE and DISTINCT in select statements

Answer Posted / satish parashar

After applying the unique clause all the value of column
will be sorted, But in distinct clause it only remove the
duplicacy from the table,not sorted the column value.

Is This Answer Correct ?    6 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of stored procedure?

726


what is an extent ? : Sql dba

755


How do I audit the sql sent to the server?

737


What is dialect in sql?

707


What action do you have to perform before retrieving data from the next result set of a stored procedure ?

2306


Can we join more than 2 tables in sql?

685


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

1740


What does (+) mean in sql joins?

743


First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1343


What is record type in pl sql?

756


what is subquery? : Sql dba

777


How can we avoid duplicating records in a query?

744


How do I write a sql query in pgadmin 4?

718


What is the use of prepared statement?

753


how to get a list of indexes of an existing table? : Sql dba

715