Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Differences between UNIQUE and DISTINCT in select statements

Answer Posted / qman*

The two keywords are only synonymous in regards to a SELECT
statement, and also ONLY in an Oracle environment. DISTINCT
is an ANSI standard where as UNIQUE can only be used this
way in Oracle. To further the differences between the two,
UNIQUE may also be used in a table creation statement to
specify that inputs into the specified column cannot share
the same value, and if attempted will result in a
constraint violation error, I hope this clears things up.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to load data files into tables with 'mysqlimport'? : Sql dba

1089


What is rownum?

971


Is microsoft sql free?

1093


what is the use of friend function? : Sql dba

1015


How to change sql*plus system settings?

1046


How does stored procedure reduce network traffic?

1002


Can ddl statements be used in pl/sql?

1136


What does count (*) mean in sql?

1573


What is the difference between having and a where in sql?

1094


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

964


what is the difference between undefined value and null value? : Sql dba

1092


What is the primary key?

945


Which is faster joins or subqueries?

985


how to drop an existing view in mysql? : Sql dba

1051


How many aggregate functions are available there in sql?

977