Assume,there are three tables in a database, Can i have
both primary key and foreign key for each table in the same
database?
Answers were Sorted based on User's Feedback
Answer / madhu
We can create 3 tables with PK and FK but can not insert
rows. Try it.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / siva
Hi,
You can place the foreign key column in each table to allow
nulls. And insert values.
But I am still worried a lot about deletion of the values
from these tables ?
Plz post your comments
Regards,
Subbu
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Would it be a good idea to create an index on a table that always contains 10 records? Why or why not?
What is table join?
What is difference between aggregate and analytic function?
Explain steps of normalization?
how to get the salary in descending order with out using the keyword desc in sql
What are magic tables in sql server?
Tell me what is sql profiler?
Define the term DML, DDL and DTL?
How can we check the sql server version?
What are translations and its use? : sql server analysis services, ssas
How can u get the number of pupils connecting the database?
Differencr Between DELETE and TRUNCATE?