什么意思,是不是只有一个记录的type的记录?select * from tablename
where type in (
select type from tablename group by type having count(*)=1
)
where type in (
select type from tablename group by type having count(*)=1
)
解决方案 »
- Delphi XE 一个Bug?日期问题
- delphi界面处理
- 喜欢用Delphi写winsock的朋友,加入这个群吧:《Delphi网络编程》,号码7714442
- 关于DBGrid的简单问题,近来看看!在线等
- 高分求思路!望高手指点!!
- 有关软硬件的接口问题(只要有道理就给分)
- *.dbx文件用什么打开才不会是乱码?
- 救救我吧,我真的不想活了(立刻给分)
- copymemory(@(pshare^.data),string,length(string))中的@(pshare^.data)是什么意思?
- 打印!
- 如何用install sheild做数据库应用程序的安装,详细点..
- 50分,一個簡單得不能再簡單的問題,可是就是有人做不出……:)
Where Type='特定type'
Yang_(扬帆破浪) 求出的是此表中Type只出现过一次的所有的记录,不知道是不是你想要的!
Where acct_item_type='月租费'
and billing_cycle_id=200206
where (acct_item_type='月租费') and billing_cycle_id not in
(select billing_cycle_id from acct_item where
acct_item_type in
(select acct_item_type from acct_item where acct_item_type <>'月租费'))
where (acct_item_type='月租费') and billing_cycle_id not in
(select distinct acct_item_id from acct_item where acct_item_type <>'月租费'))