create table t (name nvarchar(100),tools nvarchar(100))
insert into t
select '张三' ,     '工具'  union all
select '张三' ,     '工具'  union all
select '李四' ,     '工具1'  union all
select '李四' ,     '工具2'  union all
select '张三' ,     '工具2'  union all
select '李四' ,     '工具1'
select name,tools from t group by name,tools