I have a table that consists of the following:
Team ID
-- --
AB 100001
DC 100001
DC 100032
AB 100021
AB 100032
AB 100044
DC 100044
DC 100323
I would like to see which ID values are align per team (AB & DC both have the same ID present). There are going to be some NULLs/Mismatches due to the size of TEAM AB being 1 million and size of TEAM DC being 50k.
I tried this but doesn't have another Field ID to compare
SELECT Team, ID FROM Table
WHERE ID IN
(
SELECT ID FROM Table
)
My desired output is a new table that shows the fields 'Team' and 'ID' and the third column that shows if they matched or not.
AB DC MATCH
-- -- --
100001 100001 TRUE
100032 100032 TRUE
100044 100044 TRUE
100021 100323 FALSE
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…