select c1.序号,c1.m说明 + CHAR (13) + c2.说明
from ( select 序号,min(说明) as m说明
from yourTable
group by 序号) c1 left join
(select a.序号,a.说明
from yourTable a left join (select 序号,min(说明) as m说明 from yourTable group by 序号) b
on a.序号=b.序号 and a.说明=b.m说明
where b.序号 is null) c2
on c1.序号=c2.序号
from ( select 序号,min(说明) as m说明
from yourTable
group by 序号) c1 left join
(select a.序号,a.说明
from yourTable a left join (select 序号,min(说明) as m说明 from yourTable group by 序号) b
on a.序号=b.序号 and a.说明=b.m说明
where b.序号 is null) c2
on c1.序号=c2.序号
== 思想重于技巧 ==
解决方案 »
- 菜鸟求教 如何添加模板页DIV页面布局之外的背景颜色
- 我的VS2005装好后为什么没有新建网站?
- 图片存到ORALCE
- asp.net(C#)怎么把HTML的模版加载数据然后读取生成首页呢?
- webconfig中<authentication>配置节中path指定的是什么路径?
- htmlbutton 的单击事件???菜鸟问题!各位帮帮忙
- 急!!大家快来帮帮我这个新手,十分感谢!!!
- 2001-1-1写入数据库总是变成 2001-1-1 0:00:00
- response.contenttype的类型是否可以为"所有类型"
- 哪位高人做过<中国电信互联星空>的.net的接口.请帮忙给些例子.谢谢.
- 如何循环添加 RadioButtonList 的Value和Text
- asp.net网站管理工具配置问题
用程序处理吧,就不用想破脑袋了,呵