Hi Everyone:
I'm not sure how to do this in SQL Server, but I thought maybe someone can point me in the right direction. What I want to do is create a Stored Procedure. What I want it to do is read a table (update_table) and if that record exist in another table (master_table) I want to update the master_table with the data in the update_table and update the "status" field in update_table if the record was updated or not. I've done this in PL/SQL, but I'm not really sure how to do this in SQL Server. Can someone help me out with this?
I'm not sure how to do this in SQL Server, but I thought maybe someone can point me in the right direction. What I want to do is create a Stored Procedure. What I want it to do is read a table (update_table) and if that record exist in another table (master_table) I want to update the master_table with the data in the update_table and update the "status" field in update_table if the record was updated or not. I've done this in PL/SQL, but I'm not really sure how to do this in SQL Server. Can someone help me out with this?