I need to write an sp as below
Existing Data
Emp_Id | Emp_Name | Emp_Age |
1001 | Ravi | 25 |
1002 | Gopal | 27 |
1003 | Kumar | 30 |
1004 | Suresh | 24 |
New Data Resultset
Column_Name | Column_Value | Is_New |
Emp_Id | 1001 | 1 |
Emp_Name | Ravi | 0 |
Emp_Age | 25 | 0 |
Emp_Id | 1002 | 1 |
Emp_Name | Gopal | 0 |
Emp_Age | 27 | 0 |
Emp_Id | 1003 | 1 |
Emp_Name | Kumar | 0 |
Emp_Age | 30 | 0 |
Emp_Id | 1004 | 1 |
Emp_Name | Suresh | 0 |
Emp_Age | 24 | 0 |
Is new column has to be 1 when an new row is taken for inserting
ShanmugaRaj