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

IN A TABLE CAN WE USE PRIMARY KEY IN ONE COLUMN AND IN
ANOTHER COLUMN BOTH UNIQUE AND NOT NULL CONSTRAINS.IF YES
HOW?PLZ GIVE ME A EXAMPLE.

Answer Posted / oceanblue

Yes, you can have a column for Primary key and have another
column which will have no duplicates or null.

e.g.

A Salary Table will have employee ID as primary key. The
table also contains TAX-ID which can not be null or duplicate.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many modules are there in telecome domain?how to explain the architecture?

2062


Difference between stored procedure and macro?

1217


What are the various etl tools in the market?

1121


Explain the term 'columns' related to relational database management system?

1117


Which is more efficient group by or distinct to find duplicates?

1128


What is the use of having index on table?

1040


What happens in a conflict? How do you handle that?

1101


What are the newly developed features of Teradata?

1081


What are some primary characteristics of teradata?

1050


What are the different functions performed in development phase?

1128


There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?

1148


tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you

899


In Teradata, what is the significance of UPSERT command?

1311


What is meant by a Clique?

1111


What are the functions involved in shared information architecture?

1121