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

What is delimiter sql?

1007


What is a sql select statement?

1041


what is the difference between group by and order by in sql? : Sql dba

1128


What are different categories of sql commands?

1133


How do I install sql?

1002


What is sql and how does it work?

1175


What is sql exception?

975


Enlist the data types that can be used in pl/sql?

1073


Does view store data in sql?

969


What are the basic techniques of indexing?

1063


What is recursive join in sql?

1027


What happens when a trigger is associated to a view?

915


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2490


is it possible to pass an object or table to a procedure as an argument?

1135


Which data type is a composite type?

989