I have a table A contains information about a list of files.
I have another table B contains information about the same list of files, but LastModifyTime may changed.
Now I want to Compare these two tables, find all differences and input into Table C. There are chances new files exist in Table B but Table A. I could use
SELECT * FROM Table B
EXCEPT
SELECT * FROM Table A
It only gives me a list of differences. but I want Table C looks like this, contains both data from Table A and Table B on differences of LastModifyDate.
How can I do it? left join ?
Note: I need to have the result of comparison written into Table C. not just as a result of query.


