I can now see how a temporary table is created but how about filling it?
My table would look like so;
Temp(PlayerID, FirstName, SecondName, Goals)
I want to put the following querys results in the table;
SELECT PlayerID, FirstName, SecondName FROM Players
I then want to insert data into the Goals column from the following query;
SELECT Players.PlayerID, COUNT(Goals.PlayerID) From Goals LEFT JOIN Players ON Goals.PlayerID = Players.PlayerID GROUP BY Players.PlayerID
My problem is I don't know how to populate the table and then add extra data from new querys.