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

Assume,there are three tables in a database, Can i have
both primary key and foreign key for each table in the same
database?

Answer Posted / subbu

Yes we can have that ! Let me expalin with this small
example.

(PK)ProjectID (FK)ClientID -- Project Table
(PK)ClientID (FK)ProjectManagerID -- ClientTable
(PK)Employee (FK)ProjetcID -- Employee Table

Check This In this example I am having 3 tables and each
table have PK and FK.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define model database?

964


When is the use of update_statistics command?

994


Name and describe few console utilities for ssrs?

284


What is the contrast amongst drop and truncate?

1030


What are the new features of sql server 2008 r2 reporting service?

207


What is user-defined scalar function?

956


How do you create a clustered index?

1042


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

1007


How many cores do I need for sql server 2016?

888


What is a unique key constraint?

1022


What is Service Broker in sql server 2012?

1016


How many types of local tables are there in sql server?

917


What is Extended user-defined?

949


What is the purpose of optimization?

985


What is check constraint in sql server?

991