MS SQL запрос для поиска общих строк в одной таблице
I am in need of a query to find the common rows in one tables.
Input ----------------------------------------------------------------- ID Name ObjectName 1 StationTypeB S011 1 StationTypeA S013 1 StationTypeA S014 1 StationTypeA S17 2 AreaA S013 2 AreaA S014 2 AreaA B015 2 AreaB S013
How to find the common ObjectName of StationTypeA and AreaA Output ----------------------------------------------------------------- ID Name ObjectName 2 AreaA S013 2 AreaA S014
Что я уже пробовал:
How to find the common ObjectName of StationTypeA and AreaA Output