I have found several answers very close to a solution, but am unable to apply them due to inexperience.
Like:
SQL Remove almost duplicate rows
SQLite3 Remove almost duplicate rows
I will simplify this to just the columns where the issue is, but I need to return the whole row of data.
Columns:
RecNbr, MPCNbr, ABCNbr
1, 123, 123
2, 12080, 123
3, 456, 456
4, 789, 987
5, 321, 987
6, 0053, <NULL>
7, 0021, ''
When I query that data I would like to see rows 2-7, but not 1.
My Data has two rows that represent the same item, one with different data than the other, I need to return the one where the MPCNbr and the ABCNbr do NOT match, but ONLY when I have another row with the same ABCNbr.
I would like this to be a view so I can query it like a table. More records will be added and this will keep reoccurring so that is why I want the view.