Mysql – sql show difference in one column based on the sum of another column on another table
I have table like following job_id quantity 2948 0 2947 3 2949 34 2950 4 And I have another table like following job_id quantity 1 10 2949 10 2949 20 If I run SELECT job_id, sum(quantity) FROM arr_database.test_table group by…