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

What objects does the fn_my_permissions function reports on? : sql server security

559


Differentiate sql server reporting services vs. Crystal reports?

150


What is the new security features added in sql server 2016? : sql server security

618


What are the steps you must follow to hide sql server instances?

541


How to change the ownership of a schema in ms sql server?

563






What are system databases into sql server (2005/2008) : sql server database administration

571


What is the largest component inside a field?

532


What is the default schema of your login session in ms sql server?

590


What does it mean to normalize a database and why would you do it?

530


What are various limitations of the views?

613


What action plan is preferred if sql server is not responding?

536


What is the use of set nocount on/off statement?

626


What is RAID? What are the different types of RAID configurations?

616


What is function of CUBE ?

613


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1559