Welcome Guest, Not a member yet? Register   Sign In
Multiple table joins
#2

(This post was last modified: 11-16-2017, 06:43 PM by JayAdra.)

Your joins are linking A.widgetID to B.tagID, whereas they need to be A.widgetID to B.widgetID (linking to the foreign key). Otherwise you'll be linking data arbitrarily.

Try updating your joins to all link to the foreign key, rather than the primary.

PS: The reason you may have seen the tags join working (although it is incorrect) may just be due to lack of test data/variety. Your tagID's likely were the same as the widgetID in your test case.
Reply


Messages In This Thread
Multiple table joins - by codeguy - 11-16-2017, 05:12 PM
RE: Multiple table joins - by JayAdra - 11-16-2017, 06:41 PM
RE: Multiple table joins - by codeguy - 11-16-2017, 10:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB