【发布时间】:2014-12-18 01:24:06
【问题描述】:
鉴于下表,如何仅选择具有独特动物的行?
animal age location
-------------------------
zebra 4 africa --> return this row
owl 50 america --> return this row
owl 50 u.s.a
panda 9 china --> return this row
我的理解是,由于 location 具有唯一的行,因此以下内容将不起作用:
SELECT DISTINCT animal, age, location FROM table
【问题讨论】:
标签: sql excel select odbc distinct