Wow, it's hard to find a simple explanation to this topic. A simple many-to-many relationship.
Three tables, tableA, tableB and a junction tableA_B.
I know how to set up the relationship, with keys and all, but I get a little confused when time comes to perform INSERT, UPDATE and DELETE queries....
Basically, what I am looking for is an example that shows:
How to get all records in TableA, based on an ID in TableB
How to get all records in TableB, based on an ID in TableA
3 How to INSERT in either TableA or TableB, and then make the appropriate INSERT in the junction table to make the connection..
I'm not looking for a solution to a specific project, just a few general examples that can be applied. Maybe you have something lying around?