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 the difference between an inner and outer join?

1055


What plvcmt and plvrb does in pl/sql?

1363


what is blob? : Sql dba

1216


write an sql query to find names of employee start with 'a'? : Sql dba

1084


Which command is used to delete a package?

1231


what is a relationship and what are they? : Sql dba

1162


What is indexing in sql and its types?

1131


what are the advantages a stored procedure? : Sql dba

1018


How do I view a sql trace file?

1061


What are sql triggers used for?

1034


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

1105


What is pl/sql table? Why it is used?

1078


What does joining a thread mean?

1072


What are sql ddl commands?

1136


How do you clear the screen in sql?

1122