I have an automated job that runs an sql query. Below is the query.
Insert into employee_master (Job_Run_ID, Employee_ID, Employee_Name, Employee_Location) values (runId, eId, eName, eLoc);
Let's say this job runs for the first time and it inserts 10 records. Now, All the inserted records should have Job_Run_Id as 10001.
For the second run, the Job_Run_Id should increment, and 10002 should be the Job_Run_Id for all records inserted into the table.
Is it possible.? Please give your inputs.