Select * from PBM.T_CHARGES where TIER <> 'T1' and STAT NOT IN (3,4,5)
I want to list only where the RX number is repeated in the table.
Select * from PBM.T_CHARGES where TIER <> 'T1' and STAT NOT IN (3,4,5)
I want to list only where the RX number is repeated in the table.
Use a GROUP BY with the HAVING
Select RX from PBM.T_CHARGES where TIER <> 'T1' and STAT NOT IN (3,4,5)
GROUP BY RX
HAVING COUNT(*) > 1