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

How to replace given values with null using nullif()?

1040


Tell me what do we need queues in sql service broker?

1053


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

2813


What do you mean by subquery?

1151


What happens if null values are involved in comparison operations?

1043


Do you know what is blocking?

996


What do you think of this implementation? Can this be implemented better?

998


how would you troubleshoot blocking? : Sql server database administration

1027


How do you migrate data from mssql server to azure?

167


What is database replication? What are the different types of replication you can set up in sql server?

1017


What is the security principal at the database level that represents your session?

995


Explain what is use of dbcc commands?

1136


Define self join?

1079


How can I check that whether automatic statistic update is enabled or not?

1097


What is the difference between dropping a database and taking a database offline?

1219