I have a table in SQLServer with the following three columns:
- RowID
- RMA
- Value
RowID is unique but RMA and Value are not.
I want to write a query that selects all rows from the table which share any particular RMA. So let's say we have the following three rows
ID RMA Value 1 - 222- Car 2 - 923 - Boat 3 - 222 - Plane 4 - 555 - Other 5 - 555 - Jet I want a query that will return rows 1, 3, 4 and 5. Row 2 will not be selected because its RMA only occurs once.
I don't even know where to start for this. Do I need to use the COUNT() function?