答案 0 :(得分:1)
您需要聚合:
select id, max(lname) as lname, max(fname) as fname, max(address) as address,
max(zip) as zip, max(city) as city, max(state) as state, max(phone)
from table t
group by id;
答案 1 :(得分:1)
您可以使用聚合:
select id, max(lname) as lname, max(fname) as fname, max(address) as address,
. . .
from t
group by id;