1
I need to make an integration between two sws of the house and I need help.
I have an integration table (3rd) that will receive the data of a new management, if created or modified.
For this, I have a view that brings the source data and I have a table with all management registered at the destination to compare.
The idea is to make a comparison between origin and destination. If there is a management name in origin that does not exist in the destination, compare the ids. If the Id does not exist, enter the information in a 3rd table. If the Id exists, enter the same data in the 3rd table. The source table can return numerous rows in this comparison.
My problem lies with comparison. I cannot program so that I only have 1 row corresponding to the ID and the new Management, which will be inserted in my 3rd table.
Data is missing in my opinion but a Stored Procedured can solve the problem.
– Motta
I agree. It’s just that all the programming I’ve done is in the client’s environment and inaccessible. So I just described the logic. Yes, it will be a trial, but I couldn’t develop her logic.
– user3701081