My requirement is I have 2 tables if I am entering data in table1 the record will go and insert table2 ,
In table2 emplid is same as per table1 new entry but elementid not allowing for same elementids means that,
Table1 entering new data emplid and elementid it will go and check table2 emplid is same and elementid same then no need new entry
If emplid is same table1,table2 and element id is same table1,table2 throw error ;
If emplid is same table1,table2 and element id is different than insert record;
If emplid and element id is different table1,table2 than insert record;