There are 3 tables:
NewData; OldDara; DifData. The NewData and OldData have the same set of columns:
Email; Имя; Фамилия; Телефон; Должность. The DifData table has the following columns:
Email; ИмяИзминившегосяАтрибута(имя столбца); СтароеЗначениеАтрибута; НовоеЗначениеАтрибута. Task:
Every day, the NewData table is cleared of data and fresh data about employees is entered into it (in fact, there are much more columns than in the example). There is a column with a unique Email value.
Next, you need to compare 2 tables NewData and OldData on the differing values of the columns in each field, and record these differences in the third table.
How can this be implemented?