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

Can sql server be linked with other servers like oracle?

1020


What are the advantages of sql stored procedure?

1121


What is field in algebra?

1092


What is the concept of optimization?

1105


You are doing log shipping due to some reasons it is failing. How you will proceed from there

2115


What is acid mean in sql server?

1195


How to provide login information for a new odbc dsn?

1094


How column data types are determined in a view?

1005


What you can do to delete a table without the delete trigger firing?

1012


What is factless fact table? : sql server analysis services, ssas

1095


What is the meaning of resultset type_scroll_insensitive?

988


Explain the microsoft sql server delete command? : SQL Server Architecture

1146


How to read data in a table with "select" statements?

1026


What is mean by candidate key?

1059


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

1093