Ok Guys i have one more question.
I would like to create new recordset from t_AnimalInput (UPSERT table but with condition).
So in one sql to do:
1. Check if Index equals 1 or 2 and take only these rows to create upsert query
2. Check if rows exist in t_AnimalSource and append if not
3. If exists just update rows in AnimalInput (but only with index 1,2 or just moved records)
How can i do this?
I would like to create new recordset from t_AnimalInput (UPSERT table but with condition).
So in one sql to do:
1. Check if Index equals 1 or 2 and take only these rows to create upsert query
2. Check if rows exist in t_AnimalSource and append if not
3. If exists just update rows in AnimalInput (but only with index 1,2 or just moved records)
How can i do this?