怎么将两个表的相同字段的数据联合查询? select max(a.col1) from table1 a,table b where a.id=b.id and a.a = b.a; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 for example:SQL> select * from t1; A B---------- ---------- 13 25 22 16 46 24SQL> select * from t2; C D---------- ---------- 11 54 44 22SQL> select max(a) from (select * from t1 union all select * from t2); MAX(A)---------- 46 linux redhat 4 安装了oracle9.2.0.4 数据库表信息为乱码 截取字符串??? ORACLE 函数问题 求解 两表组合查询 请问大侠们,导入时产生ora-26065错误,impdp方式,10。2.0.2.0 急急急急急!!求一条sql语句???? 关于case语句的写法 会分析 *.trc 跟踪文件的请进。(谢谢) 求一条sql语句? 求sql语句的写法 想学Oracle,请大家推荐一本入门的电子书,最好从图形界面进入的,谢谢! 登陆问题,急!!
SQL> select * from t1; A B
---------- ----------
13 25
22 16
46 24SQL> select * from t2; C D
---------- ----------
11 54
44 22SQL> select max(a) from (select * from t1 union all select * from t2); MAX(A)
----------
46