Hi 'yall
I have a simple problem, but I just can not find a way of getting the SQL server to see that it is simple
I have two tables, one with 10 records (TableOld) and one with 9 (TableNew).
9 of the records in both tables match.
I wish to update TableOld with the one record that does not appeare in table New. For Example :
UPDATE TableOld.Missing = 1
FROM TableOld LEFT OUTER JOIN
TableOld TableNew ON
TableOld.FileName = TableNew.FileName
WHERE (TableNew.FileName = NULL)
But this does not work....
What is the structure for the query ?
Thanks for reading this far!
DerickD
I have a simple problem, but I just can not find a way of getting the SQL server to see that it is simple
I have two tables, one with 10 records (TableOld) and one with 9 (TableNew).
9 of the records in both tables match.
I wish to update TableOld with the one record that does not appeare in table New. For Example :
UPDATE TableOld.Missing = 1
FROM TableOld LEFT OUTER JOIN
TableOld TableNew ON
TableOld.FileName = TableNew.FileName
WHERE (TableNew.FileName = NULL)
But this does not work....
What is the structure for the query ?
Thanks for reading this far!
DerickD