什么意思,是不是只有一个记录的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
)
解决方案 »
- Bpl打包的BaseForm怎么可视化继承?让别的BPL继承时可以看见上面的控件?
- 我已经开始怀疑我碰到的这个问题是否是Delphi的巨大Bug了,涉及内存!
- 急求一个动态创建表的问题?
- 如何美化我的delphi程序
- sos:ehlib3。0组件不全,总提示'EhLibBDE.dcu'找不到?
- ★★《Delphi技巧集》
- 安装Fastreport 时怎么copy FR_Class?
- 没在Delphi下做过COM,请给个例子参考一下,要有注释说明,另外不理解Delphi中的COMObject和AutometionObject有什么不同.
- 如何把webbrowser保存为MHT
- 用TWebBrowser,如何去掉滚动栏
- 如何用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 <>'月租费'))