Can anyone tell me what is wrong with this statement. I'm getting an unknown table error. I do have the table. What I'm trying to do is move data from one table to another if there is a match on 3 fields.
Thanks
SQL-query :
INSERT INTO mdffl (ytd_points) SELECT week_1_fantasy_pts FROM week1
WHERE mdffl.player_last_name=week1.player_last_name and mdffl.player_first_name=week1.player_first_name and mdffl.position=week1.position
MySQL said:
Unknown table 'mdffl' in where clause
Thanks
SQL-query :
INSERT INTO mdffl (ytd_points) SELECT week_1_fantasy_pts FROM week1
WHERE mdffl.player_last_name=week1.player_last_name and mdffl.player_first_name=week1.player_first_name and mdffl.position=week1.position
MySQL said:
Unknown table 'mdffl' in where clause