select * from tb a
where not exists(select 1 from tb b where a.services=b.services and a.serviceid>b.serviceid)
where not exists(select 1 from tb b where a.services=b.services and a.serviceid>b.serviceid)
解决方案 »
- if object_id('#t') is not null drop table #t; 为什么无效
- 求一个交叉表的SQL语名.请帮忙看看.....
- 请帮我修改下触发器
- 批量插入数据的问题,求解答
- SQL语句---如何寻找上级组
- 问题讨论,希望各位CSDNER勇跃的回复,特别期待邹建,大力等高手高高手的关注
- 急救!这个SQL语句怎么写?
- 简单问题:如何编写返回多部分结果集的存储过程或函数?
- ?十万火急!!!哪位老兄能帮帮我!我在用VB编程时,用鼠标双击MSFlexgrid时,如何定位我双击过的哪一行,哪一格?我已经搞了多少天了,焦头烂额!!!谁能帮我,有100分可以拿!!!我的信箱:[email protected](renzhiguo
- 在VB中如何对MS-SQL进行图片的存取
- 谁知道这个sql语句如何改善,关于多表查询联合
- SQL数据列合并问题
where not exists(select 1 from tb where servicesid <a.servicesid and services =a.services)
from tab
group by services