【发布时间】:2017-03-16 00:13:46
【问题描述】:
假设我有一张客户地址表:
CName | AddressLine
-------------------------------
John Smith | 123 Nowheresville
Jane Doe | 456 Evergreen Terrace
John Smith | 999 Somewhereelse
Joe Bloggs | 1 Second Ave
我想选择具有不同 AddressLine 的 CName 意味着我不想选择“John Smith”,因为它有两个地址。我该怎么做?
【问题讨论】:
-
您的意思是“独特”而不是“独特”吗?意思是你想要所有只有一个地址行的
CNames?
标签: sql sql-server