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 / david alexander

There is some confusion here. Yes, UNIQUE is a constraint,
but the question is not about constraints, its about a
select statement. And, to answer it quite simply, its a
trick question. There is no difference. Although I always
see it as DISTINCT. Here is the quote from Oracle® Database
SQL Reference 10g Release 2 (10.2):

"Specify DISTINCT or UNIQUE if you want the database to
return only one copy of each set of duplicate rows
selected. These two keywords are synonymous. Duplicate rows
are those with matching values for each expression in the
select list."

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why join is faster than subquery?

1040


Are subqueries better than joins?

916


Which is faster view or stored procedure?

886


How do I enable sql encryption?

965


What is cold data?

897


What is data definition language?

1041


Does oracle use sql?

875


Explain the insert into statements in sql?

934


What is AUTH_ID and AUTH_USER in pl/sql ?

2135


When you have to use a default "rollback to" savepoint of plvlog?

1123


what is oracle database ? : Sql dba

966


What is sql rowcount?

946


what is innodb? : Sql dba

1030


Why plvtab is considered as the easiest way to access the pl/sql table?

1129


Which operator is used in query for pattern matching?

1031