Hello all,
Need help creating cursors. I'm sure a loop is needed not sure how. I have a staging table where if column action flag = A, insert record into history table, if Action flag= U, update the history table record. How do I call the staging table to check if record has to be inserted/updated to history table?