I have a fact table that contains some finance data. There is a column (VERS_NM) that defines wherther the value is “Actual” or “Current Outlook”. The value for these two should always be the same but we noticed in some reports it seems incorrect. So I want to write a query to find where the actual value does not match the current outlook.
I cannot wrap my head around a way to do this.
Here is what the table looks like:

So to recap there will be an identical row to row 1 except the VERS_NM column will say “Actual”. At least it is supposed to be, I want to find any instances where the Actual and Current Outlook don’t match. Any help or ideas is much appreciated. Just a push in the right direction or some kind of plan to tackle this would be great.
Thanks!
You could just self join the data, replacing the fields
a, b, c, dwith the fields that indicate that the rows are equivilent.