使用Group By和Max/Min聚合
Group By
Max/Min
SELECT id, first, last, address, Max(truck) AS truck, Max(machinery) AS machinery, Max(gl) AS gl, Max(ne) AS ne, Max(nw) AS nw FROM yourtable GROUP BY id, first, last, address