SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 An associative of an associative
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Moshodiruth
Starting Member

South Africa
1 Posts

Posted - 08/08/2012 :  06:19:51  Show Profile  Reply with Quote
How do i reference a [PK][FK] of an associative in another associative of that associative.
E.g I have a table (Client_Order)with PK - 'Order_ID', An associative (Order_Line) which references the PK 'Order_ID' and makes it a [PK][FK]. Now the problem is that i have another associative of the Order_Line associative called (Product_Order) which also has the [PK][FK] of 'Order_Id'. Question is, in the script, what do i reference the 'Order_ID' in the Product_Order table as?? do i reference it from (Order_Line) or (Client_Order)
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000