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 / gvmahesh

unique is a constraint it's declare for preventing the data
duplication.we create it along with table creation.
DISTINCT is a clause it is used for retrieving the data
without duplication.but it can't prevent the data
duplication.It just hiding the duplicated data.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a trigger in sql?

1156


Which are the different types of indexes in sql?

990


Is pl sql different from sql?

936


Can we use two order by clause in query?

918


What is a record in pl/sql?

1070


Does mysql_real_escape_string prevent sql injection?

907


What are the uses of sysdate and user keywords?

1050


Can procedure in package be overloaded?

1028


How do I make sql search faster?

936


Where are my tempfiles, I don't see them in v$datafile or dba_data_file?

943


How do you rank data in sql?

935


What is pl sql in dbms?

900


What is update query?

920


What is multiple columns?

1000


What are the different sql languages?

985