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...


what is the different between unique+not null & primary key,

Answers were Sorted based on User's Feedback



what is the different between unique+not null & primary key,..

Answer / sreekumar

In a relation, we can create only one primary key where as we can create multiple unique+not null constrains.

Primary key uses clustered index where are unique +Not null uses non clustered index.

Sreekumar

Is This Answer Correct ?    18 Yes 1 No

what is the different between unique+not null & primary key,..

Answer / suresh babu

Unique:

Unique is a constraint,which doesn't allow the duplicate
values and allow only one null value.We can create more
number of unique constraint in single table.

Not Null:

Not Null constraint,which doesn't allow the Null values and
allow the duplicate values.

Primary Key:

We can create one primary key for a table,Which doesn't
allow the duplicate and null values,and used for make a
foreign key relation.we can't do this process using above
two constraints.

Is This Answer Correct ?    4 Yes 0 No

what is the different between unique+not null & primary key,..

Answer / mohan babu

A unique key is nothing but it does not allow any
duplicateds but allows nullvalues

A primary key is nothing but it does not allow duplicates
as well as Null values i.e Not Nulls

Is This Answer Correct ?    5 Yes 5 No

what is the different between unique+not null & primary key,..

Answer / giri

unique:it does not allow duplicate values but it allow null values.
not null:It does not allow null values but allow duplicate values.
primary:It does not allow both duplicate and null values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is the most common sql injection tool?

0 Answers  


Explain clause in sql?

0 Answers  


Can we perform dml in function?

0 Answers  


What is crud stand for?

0 Answers  


What are all the different normalization?

0 Answers  


how to get second highest salary in SQL(as/4000

29 Answers   iGate,


Write a query to genarate target column.Please answer me. Advance Thanks. Src Tgt Q10 Quarter to 2010 Q90 Quarter to 1990 Q80 Quarter to 1980 Q74 Quarter to 1974

5 Answers   Infosys,


How to raise user-defined exception with custom sqlerrm ?

0 Answers  


When the mutating error will comes? and how it will be resolved?

2 Answers  


How do you create a db file?

0 Answers  


How do I audit the sql sent to the server?

0 Answers  


What is recursive join in sql?

0 Answers  


Categories