±íAÓÐc,dµÈ×Ö¶Î Ïë»ñµÃc×Ö¶ÎÖ¸²»Öظ´µÄËùÓмǼӦ¸ÃÔõôдselect c,d from a group by c select * from a where not exists(select 1 from a b where name=b.c and d>b.d) select * from a where c not in (select c from a group by c having count(c)>1) SQL code: select * from a t where (select count(1) from tb where c=t.c)=1
tb¸ÄΪa SQL code: select * from a t where (select count(1) from a where c=t.c)=1
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
µÚÒ»¾ä: select ht.gfdm,gfdm.gfmc,gfdm.lb ,sum(jh.htdj*jh.htsl)as je from ht left join gfdm on ht.gfdm=gfdm.gfdm join jh on ht.htbh=jh.hth and ht.htbh not like'del%' and ht. ......