I am using Teradata and my query is
SELECT deptno, name, salary
FROM personnel.employee;
Above table automatically gets updated everyday e.g. new rows added/deleted, existing values gets updated. There are no date/time field.
Is there a way I can only get the changes and not all the records? Also is there a way to know which of the record are new vs. which are updated? Happy to run multiple query as the file size will be small. Does Teradata have internal table where it keeps record of updates/deletes? do I need special permission to access such table? thanks.
In the given scenario itself you don'T have a chance to see the diff. But some ideas to improve the table / situation: