I have two main tables
- Postion
- geography
If the row in position intersects the row in geography, I need to insert it in third table.
But the problem is I have to check the existing row in the third table and then insert it.
I can do this with set operations,but the problem is I can't process each row (i.e. if there are two rows with similar data,need to insert only the first).
I can do with cursor but I read its a bad thing.
Can anyone help me to process each row before inserting?