I have this query here
SELECT a.FileTrackingTag, a.DataSetName FROM TempTable a
LEFT JOIN FinalTable b ON a.Title = b.Title
WHERE b.FileTrackingTag IS NULL
AND b.DataSetName IS NULL
And I want to update the Filetrackingtag and the datasetname in finaltable with the values in temptable only if they are null and having the same Title and SampleID between the two tables
table structure is as such,
both tables have Title, Filetrackingtag, and Datasetname
Any recommendations?
I think the statement you’re looking for is this:
(I haven’t tested the code, but I’m pretty confident it should work)