나는 불꽃이 뭐하는 거지에 따라 전체 행을 선택합니다어떻게 별개의 열
cityId PhysicalAddress EmailAddress ..many other columns of other meta info...
1 b st [email protected]
1 b st [email protected] <- some rows can be entirely duplicates
1 a avenue [email protected]
2 c square [email protected]
2 d blvd [email protected]
이이 테이블에 기본 키가 없습니다 내가 각각 별개의 cityId을 기반으로 한 임의의 행을 잡아하려는
예 이것은 정답입니다.
cityId PhysicalAddress EmailAddress ..many other columns
1 b st [email protected]
2 c square [email protected]
이것은 또한 정답입니다
cityId PhysicalAddress EmailAddress ..many other columns
1 a avenue [email protected]
2 c square [email protected]
마음에 떠오르는 한 가지 방법은 group by
을 사용하는 것입니다. 그러나, 그것은 다른 열에 집계 함수를 사용해야합니다. (예 : min()). 반면, 나는 단지 전체 행을 꺼내고 싶다.