I have 2 tables
First Table:
num | job1 | job2
--------------------
1 14 12
2 23 14
3 3 12
4 21 3
5 6 8
second:
id | jobs
------------
3
12
14
21
23
etc...
I need to count how many times second table's id appears at first table,s
columns job1 and job2 and update that total value to second table column "jobs"