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

Distinct:
Its gives only the non duplicate values in a database table.
Unique:
The UNIQUE constraint uniquely identifies each record in a
database table.its similar to primary key.these values
cannot be repeated.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advantages of sql ? : Sql dba

1052


what is a stored procedure? : Sql dba

1122


How do I send sql query results to excel?

1056


What is the difference between syntax error and runtime error?

1128


i have some prob lem to tell me about my self in interview first round ...

2158


what is the difference between join and union? : Sql dba

1104


How do you copy a table in sql?

1059


Is it mandatory for the primary key to be given a value when a new record is inserted?

1196


What is varchar used for?

1074


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

1049


Why is the cursor important?

1033


What is sql engine in oracle?

982


Do we need commit after truncate?

1072


What is difference sql and mysql?

972


Can two tables have same primary key?

966