语句1、select sno,gname,amount,ssum from gname
语句2、select sebill.gname,sum(sebill.amount),sum(sebill.ssum) from pebill,sebill where pebill.sno=sebill.sno group by gname
语句3、select sobill.gname,sum(sobill.amount),sum(sobill.ssum) from pobill,sobill where pobill.sno=sobill.sno group by gname问题:我想用一条语句(如full join,left join,outer join)把这三句话联接起来可以吗???
语句2、select sebill.gname,sum(sebill.amount),sum(sebill.ssum) from pebill,sebill where pebill.sno=sebill.sno group by gname
语句3、select sobill.gname,sum(sobill.amount),sum(sobill.ssum) from pobill,sobill where pobill.sno=sobill.sno group by gname问题:我想用一条语句(如full join,left join,outer join)把这三句话联接起来可以吗???
解决方案 »
- 如何在桌面画坐标系???急,急,急高分求解.
- 如何用UpdateSQL给数据库中某条记录的日期字段写入空值?
- 诚心求教^-^
- 为什么Combobox控件的Text值不能改变?
- FileExists 支持通配符吗?
- delphi中做web程序的运行时出显错误 ......
- DELPHI6+crystal report8,我在作安装程序时那个水晶报表的驱动程序怎么办
- 请问这个函数在delphi中调用第二个参数怎么写
- 一个关于combobox的小问题。
- 哪里找控件?
- Procedure RestoreRequest(var message: TMessage); message CM_RESTORE; //为什么出错?
- 如何在memo中载入一个word文档
如果是这样,用 UNION ,JOIN 是合并列。