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 / rob reid

Howard Cheon is correct. They are THE SAME. There is no
difference.
The following is from the Oracle 9i SQL Reference (Note the
statement "these two keywords are synonymous" - that means
they mean the same thing):

DISTINCT | UNIQUE
Specify DISTINCT or UNIQUE if you want Oracle 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.

Restrictions on DISTINCT and UNIQUE Queries
When you specify DISTINCT or UNIQUE, the total number of
bytes in all select list expressions is limited to the size
of a data block minus some overhead. This size is specified
by the initialization parameter DB_BLOCK_SIZE.
You cannot specify DISTINCT if the select_list contains LOB
columns.

Is This Answer Correct ?    59 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the table name in sql?

992


How do I write a cron which will run a sql query and mail the results to agroup?

1027


Explain the steps needed to create the scheduled job?

1086


What is data modelling in sql?

1068


Explain cursor types?

1078


How would you pass hints to the sql processor?

1034


how many sql dml commands are supported by 'mysql'? : Sql dba

1162


What is using in sql?

1137


How to change sql*plus system settings?

1100


How does sql*loader handles newline characters in a record? : aql loader

1088


Name some usages of database trigger?

1078


Can we use two order by clause in query?

1015


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

1123


What is a record in pl/sql?

1214


What is the basic structure of an sql?

1147