由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 1. Oracle vs. SQL92 Re: Just
相关主题
急问一个关于T-SQL的问题,谢谢please help with this left join question
MS SQL Group By Questionquestion on JOIN on Oracle
难。想了一天了。大牛请进。菜鸟急问ORACLE里FUNCTION返回ref cursor的问题
aks a simple SQL question各位大虾,请问那里有SQL标准的最新动态,望指点,在
如何在将学生成绩排序后,再加一个rank域Help on migrating oracle to db2, outerjoin
求解释请教:SQL面试题。
2个table, 一个里面有4万个email, 一个里面有1万6千个email,如何比较?tbl1.col1 = tbl2.col2 (+)
rsArray 为啥写不全? (转载)万佛,请教一个数据库问题 (转载)
相关话题的讨论汇总
话题: outer话题: join话题: oracle话题: right话题: sql92
进入Database版参与讨论
1 (共1页)
o****i
发帖数: 5
1
hehe, 姑且从这里开始吧 :)
本来想先说一个Oracle的好处,再说一个坏处,现在就颠倒一下吧

As I know, they don't.
For example, outer joins.
SQL92's outer join is like this:
SELECT ......
FROM A LEFT/RIGHT/FULL OUTER JOIN B ON (A.attr1 = B.attr2)
.........
In Oracle, you can do LEFT, RIGHT outer join like this
SELECT .....
FROM A, B
WHERE A.attr1(+) = B.attr2
or A.attr1 = B.attr2(+) for RIGHT OUTER join.
But you don't have general means to do FULL OUTER JOIN:
B*****n
发帖数: 135
2

yeah right :) I was thinking of adding an "except outer join"
statement to my previous post. How often people use (full)
outer join anyways...
first, the device drivers are written by hardware vendors,
and have nothing to do with microsoft itself.
second, ain't there enough headaches resulting from M$'s crappy
support of hardwares? I once plugged in a new scanner to my boss'
computer and it caused his NT box to crash beyond rescue.

【在 o****i 的大作中提到】
: hehe, 姑且从这里开始吧 :)
: 本来想先说一个Oracle的好处,再说一个坏处,现在就颠倒一下吧
:
: As I know, they don't.
: For example, outer joins.
: SQL92's outer join is like this:
: SELECT ......
: FROM A LEFT/RIGHT/FULL OUTER JOIN B ON (A.attr1 = B.attr2)
: .........
: In Oracle, you can do LEFT, RIGHT outer join like this

x********o
发帖数: 31
3
yes, you can not use A.attr1(+)=B.attr2(+);
but to my understanding,you can get a outer join using:
select distinct a.attr1,b.attr2 from a,b ;

【在 B*****n 的大作中提到】
:
: yeah right :) I was thinking of adding an "except outer join"
: statement to my previous post. How often people use (full)
: outer join anyways...
: first, the device drivers are written by hardware vendors,
: and have nothing to do with microsoft itself.
: second, ain't there enough headaches resulting from M$'s crappy
: support of hardwares? I once plugged in a new scanner to my boss'
: computer and it caused his NT box to crash beyond rescue.

B*****n
发帖数: 135
4

that's different... a full outer join is an extension
of a simple join (add rows from both tables that were
filtered out in a simple join).
Your query on the other hand is doing a cross product (no join
conditions).
In oracle you can get a full outer join by UNION a
left and a right outer join.
For instance,
SQL> select * from AAA;
A B C

【在 x********o 的大作中提到】
: yes, you can not use A.attr1(+)=B.attr2(+);
: but to my understanding,you can get a outer join using:
: select distinct a.attr1,b.attr2 from a,b ;

x********o
发帖数: 31
5
now i misunderstood your meaning le.
sorry.

【在 B*****n 的大作中提到】
:
: that's different... a full outer join is an extension
: of a simple join (add rows from both tables that were
: filtered out in a simple join).
: Your query on the other hand is doing a cross product (no join
: conditions).
: In oracle you can get a full outer join by UNION a
: left and a right outer join.
: For instance,
: SQL> select * from AAA;

w*****h
发帖数: 139
6
Why not compare the SQL-99 features in both database?
Thanks!
B*****n
发帖数: 135
7

i dont think anybody is supporting SQL99 at this time...
just announcements and chest-poundings.

【在 w*****h 的大作中提到】
: Why not compare the SQL-99 features in both database?
: Thanks!

1 (共1页)
进入Database版参与讨论
相关主题
万佛,请教一个数据库问题 (转载) 如何在将学生成绩排序后,再加一个rank域
求助SQL高手,这个join怎么做比较好求解释
给一堆table,怎样能自动生成ERD2个table, 一个里面有4万个email, 一个里面有1万6千个email,如何比较?
新手请教:无数据库,有数据,需要SQL 做表joinrsArray 为啥写不全? (转载)
急问一个关于T-SQL的问题,谢谢please help with this left join question
MS SQL Group By Questionquestion on JOIN on Oracle
难。想了一天了。大牛请进。菜鸟急问ORACLE里FUNCTION返回ref cursor的问题
aks a simple SQL question各位大虾,请问那里有SQL标准的最新动态,望指点,在
相关话题的讨论汇总
话题: outer话题: join话题: oracle话题: right话题: sql92