I have three tables.
Table "profile" (ID & position)
Table "requirements" (Position & requirements)
Table "staffrecord" (ID & requirements)
I would like to populate table "staffrecord" with a join from Table "profile" and Table "requirements" where there may be up to 30 rows of data put into table "staffrecord" as a result of the join. I have this:INSERT INTO staffrecord(ID,reqrmnt,due_in)SELECT profile.ID,requirements.requirement,requirements.duein FROM requirements INNER JOIN requirements ON profile.position=requirements.position WHERE profile.ID='$id'"
It inserts one row. Thats my problem. What is wrong with the join that only inserts one row or is that what a INSERT INTO ....SELECT
query does? Thanks for any help