kee1108 Posted August 30, 2006 Share Posted August 30, 2006 Hope someone can help me out.I have two tables in mysql, one is showing all the personal information of a group of athletes (also store an indicator to show wheather they are injured or not). I am planning to create another table to store all the players with injuries and their type of injury.So my question is, is it possible if I want to call for a table for all the players that is with injuries (I want to show their info as well as the type of injury from the 2nd table.)Hope someone can help me out or give me some direction on how to do it.Or is there a easier way to do this?Thank you.-Ricky Quote Link to comment https://forums.phpfreaks.com/topic/19137-link-between-table/ Share on other sites More sharing options...
ober Posted August 30, 2006 Share Posted August 30, 2006 So let me get this straight:Table 1:personid | athlete | sport | height | weight | etcYou want to add Table 2:personid | injury | type_of_injuryCorrect?That's how it should be structured. Then when you want to find out the people that have injuries, you can use a JOIN or a UNION between the tables to gather the information from both. I suggest you read up on those two items on the mysql website to get a better understanding of how to join data. Quote Link to comment https://forums.phpfreaks.com/topic/19137-link-between-table/#findComment-82780 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.