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 binary strings be converted into numeric or float data types?

1038


What are ddl (data definition language) statements for tables in ms sql server?

1104


Explain the types of indexes.

1218


What is cursors? And what are the different types of cursor?

1145


Difference between aggregate functions of sql?

1106


What is self contained sub query?

1060


What is the difference between char, varchar and nvarchar?

1024


What are the new data types are introduced in sql 2000?

907


Explain primary key?

969


What is difference between aggregate and analytic function?

938


What is the use of builtinadministrators group in sql server? : sql server security

1050


Does view occupy space?

947


What is query optimization process?

1015


What is autocommit mode in sql server?

1178


What is data set in report?

135