I’ve got two tables:
Table 1 = idhash - username - usermail
Table 2 = idhash - views - fistseen - lastseen
Now I want to merge these tables to a new table:
Table 3 = idhash - username - usermail - firstseen - lastseen
*notice that I want to drop the views column.
I’ve tried with solutions that I found on google, but so far they do not seem to work.
- Not all the idhash columns from table 2 have a corresponding idhash in table 1. Stiil store those ‘mismatched’ rows with empty username and usermail
This query will give you the results:
And to insert and update the results on your [Table 3]: