Hi,
I have a "before and after" problem where I have two tables with id_keys and have to detect if there's been any changes.
I've built an internal temp table of the before list, passed as a string array to the stored procedure, like this create table #prev (id_key int).
I then want to do a select id_key from ... query to get the after state and do an XOR with #prev in the where clause.
In other words I want to return a list of the id_keys either in #prev or query but not in both.
Any suggestions? It should be pretty basic but I've been unable to google it...
![[elephant2] [elephant2] [elephant2]](/data/assets/smilies/elephant2.gif)
graabein
I have a "before and after" problem where I have two tables with id_keys and have to detect if there's been any changes.
I've built an internal temp table of the before list, passed as a string array to the stored procedure, like this create table #prev (id_key int).
I then want to do a select id_key from ... query to get the after state and do an XOR with #prev in the where clause.
In other words I want to return a list of the id_keys either in #prev or query but not in both.
Any suggestions? It should be pretty basic but I've been unable to google it...
![[elephant2] [elephant2] [elephant2]](/data/assets/smilies/elephant2.gif)
graabein