I would like to update data in two different table however based on select query using pivot I\'m unsure how to go about to do the update query.
SELECT QUERY
S