As you see the 2 tables, I want to update/sync the data from table Invoice
to table HR
.
The scenario is to manually input the data in columns HR
& PO Number
, then update with table Invoice
. I think the idea is to join only data with exist PO Number in table HR
, no need to get rows if the PO Number does not exist. Also the format of column month looks like a number, so how to get just month in SQL and does not matter the format of date.