I really need help with a query I am trying to make. This query is kicking my butt. I have not been working with mysql for very long. I am still somewhat of a "noob"
ok a litte bit of background on this query I am trying to come up with.
I have two tables that I am trying to get certain things from each.
Here is my basic table structures:
Table 1:
clans_gametypes
this table has 4 fields in it.
id, db_field_name, desc, image_name
this table has 42 rows of data in it.
Table 2:
clans_games_played
this table has 44 fields.
id, clan_id, and 42 other fields that are named the same as the 42 rows of data that are in the field db_field_name in table 1.
the db_field_name field has 42 rows of shortened game names that are the same as 42 of the fields in the second table.
The thing that I need to do is get all the info for the field image_name data in Table 1 that = "yes" AND clan_id =(a variable that I have from another query) in Table 2 in the 42 shortened game name fields that are in Table 2.
I hope I explained what I need good enough for someone to understand what I want...lol
I thank you in advance for you time...Thanks
ok a litte bit of background on this query I am trying to come up with.
I have two tables that I am trying to get certain things from each.
Here is my basic table structures:
Table 1:
clans_gametypes
this table has 4 fields in it.
id, db_field_name, desc, image_name
this table has 42 rows of data in it.
Table 2:
clans_games_played
this table has 44 fields.
id, clan_id, and 42 other fields that are named the same as the 42 rows of data that are in the field db_field_name in table 1.
the db_field_name field has 42 rows of shortened game names that are the same as 42 of the fields in the second table.
The thing that I need to do is get all the info for the field image_name data in Table 1 that = "yes" AND clan_id =(a variable that I have from another query) in Table 2 in the 42 shortened game name fields that are in Table 2.
I hope I explained what I need good enough for someone to understand what I want...lol
I thank you in advance for you time...Thanks