oracle数据库中对三个不同的字段进行求和,来自两张不同的表
解决方案 »
- 数据库覆盖的问题
- PROCEDURE 编译不过,请教
- Io 异常: The Network Adapter could not establish the connection
- 请推荐你认为最好的两本oracle教材及两本oracle参考资料,请不要多推荐
- ORA-24374 ,怎么解决呢?
- Oracle 10g 在windows 2003 下安装时的网络配置,请教高手,急!
- oracle中的表结构和sqlserver中的表结构一样。如何用sql语句,把oracle中的数据导到sqlserver中来?
- 求oracle 8.1.6或7 for window的下载地址?????急!!!在线等
- 北京泰思达公司诚聘DELPHI+数据库高手!!!!!!!!!!!!!!!!!!!!!!
- 哪里能下载Developer2000
- linux下启动 Oracle监听 报错
- oracle10G 使用SQL Plus提示:无法识别连接描述符中请求的服务
如
select A.a + B.b + C.c from A, B, C
SQL> with t1 as(
2 select 1 t1_id,10 t1_col_1,'ddd' t_n from dual union all
3 select 3,15,'eeee' from dual union all
4 select 5,78,'ttt' from dual union all
5 select 8,89,'yyy' from dual)
6 ,t2 as(
7 select 1 t2_id,100 t2_col_1,456 t2_col_2 from dual union all
8 select 2,200,300 from dual union all
9 select 3,400,500 from dual union all
10 select 8,1,1 from dual)
11 select a.t1_id , a.t1_col_1 + b.t2_col_1 + b.t2_col_2
12 from t1 a,t2 b
13 where a.t1_id=b.t2_id
14 / T1_ID A.T1_COL_1+B.T2_COL_1+B.T2_COL
---------- ------------------------------
1 566
3 915
8 91