5
DBMS: SQL Server 2014;
Problem: I need to know which records are duplicated, so that it is checked in two simultaneous fields, that is, if the field "CPF" with the value '83971465842' and the field "MAT" with the value '001' exists, identically, in another tuple. As shown in the example below:
CPF MAT
83971465842 001
83971465842 001
57650942287 111
57655707200 305
57656959220 916
57656959220 209
Note that in the first two records, the values '83971465842' + '001' are in two different lines. These are precisely what I need to identify. How to do the consultation?
Solved! Thank you very much!
– mcardoso
Then accept the answer that helped you the most as this indicates image.
– Laércio Lopes