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
What objects does the fn_my_permissions function reports on? : sql server security
Differentiate sql server reporting services vs. Crystal reports?
What is the new security features added in sql server 2016? : sql server security
What are the steps you must follow to hide sql server instances?
How to change the ownership of a schema in ms sql server?
What are system databases into sql server (2005/2008) : sql server database administration
What is the largest component inside a field?
What is the default schema of your login session in ms sql server?
What does it mean to normalize a database and why would you do it?
What are various limitations of the views?
What action plan is preferred if sql server is not responding?
What is the use of set nocount on/off statement?
What is RAID? What are the different types of RAID configurations?
What is function of CUBE ?
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