In that case, don't compute the difference :-)
To be honest, I only now understand that you want to filter out the records where no change happened and keep only those where there is a difference... *slow-thinking-today*...
I see the following approaches here:
- You do a scripted calc. view and use "the power of SQL" to select all the records in TAB-1 that are not in TAB-2. The seldom used EXCEPT operator would be a good choice here.
or - Instead of the difference, you calculate an indicator (changed? Yes/No) on which you filter
In fact I would probably do the whole thing in a plain SQL view anyhow - much less overhead from a design perspective and very expressive for this requirement.
So, my recommendation would be to do version 1.
- Lars