Click here to Skip to main content
15,912,327 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am in need to create a table for inserting marks , so i am in need for studentid and subjectname for entering marks both these studentid and subjectname are from two different tables , so can i use both these studentid and subjectname columns in my new table for inserting marks and give them both foreignkey constraint , I am using asp.net 3.5 framework with sql server 2000 database.
Posted
Comments
ssd_coolguy 4-Sep-12 7:11am    
can you elaborate more...

1 solution

Single word answer is Yes.

photo:
* photo_id (PK)
* filepath

comment:
* comment_id (PK)
* body

comment_to_post
* comment_id (PK) -> FK to comment.comment_id
* post_id (PK) -> FK to post.post_id

Read this http://msdn.microsoft.com/en-us/library/ms179610.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900