I know that I will have voices, but I have to make sure that it is logical or not.
I have three tables A, B, C. B is the table used to establish the many-many relationship between A and C. But the fact is that A and C are also directly related to the 1-many relationship
The client added the following requirement:
Get the information from the inner insert of table B with A and C, and in the same query, link A and C to the one-to-many relationship
Sort of:
alt text http://img247.imageshack.us/img247/7371/74492374sa4.png
I tried to execute the query, but always got 0 rows back. The client insists that I can fulfill this requirement, but I doubt it. Any comments?
PS. I did not have a more descriptive name, any ideas?
UPDATE: Thanks to rcar, in some cases it might be logical to have a history of all the classes a student took (suppose a student can only take one class at a time)
UPDATE: There is a table for contacts, a table with the information of each contact and a relationship table. To get information about a contact, I have to establish a 1: 1 connection with the information, and each contact can have an address book; therefore, many, many relationships are realized.
The complete idea is to get the name of the contact and its address book. Now that I got the idea of the client ... I'm having problems with the request, basically I try to use the request that jdecuyper wrote, but as he warns, I am not getting any data back