由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Help on migrating oracle to db2, outerjoin
相关主题
万佛,请教一个数据库问题 (转载)aks a simple SQL question
急问 hibernate query 如何在将学生成绩排序后,再加一个rank域
Access 数据库查询请教:SQL面试题。
1. Oracle vs. SQL92 Re: Just急问一个关于T-SQL的问题,谢谢
correlated subquerytbl1.col1 = tbl2.col2 (+)
DW BI ETL 问题 - Data Validation and Recordset Comparison (转载)MS SQL Group By Question
DBA 工作機會求助SQL高手,这个join怎么做比较好
难。想了一天了。大牛请进。求解释
相关话题的讨论汇总
话题: db2话题: outer话题: join话题: outerjoin话题: bankname
进入Database版参与讨论
1 (共1页)
h**d
发帖数: 474
1
Is there any outer join operator in DB2?
The following is one of my SQL statement:
CREATE OR REPLACE VIEW BANKREFERENCE_SEARCH_V ( CUSTOMERID,
CUSTOMERNAME, BANKNAME, REFERENCEDATE, ASSIGNEDTOSTR,
ASSIGNEDTO, FOLLOWUPDATE ) AS (
select distinct
customer.customerID as customerId,
customer.NAME as customerName,
br.NameOfInstitution as BankName,
br.referenceDate as ReferenceDate,
su.LastName || decode(nvl(br.assignedTo,-1),-1,'',', ') || su.
FirstName || decode(nvl(br.assignedTo,-1),-1,''
a****n
发帖数: 53
2
In DB2, the ourter join operator is
FULL OUTER JOIN
LEFT OUTER JOIN
RIGHT OUTER JOIN

【在 h**d 的大作中提到】
: Is there any outer join operator in DB2?
: The following is one of my SQL statement:
: CREATE OR REPLACE VIEW BANKREFERENCE_SEARCH_V ( CUSTOMERID,
: CUSTOMERNAME, BANKNAME, REFERENCEDATE, ASSIGNEDTOSTR,
: ASSIGNEDTO, FOLLOWUPDATE ) AS (
: select distinct
: customer.customerID as customerId,
: customer.NAME as customerName,
: br.NameOfInstitution as BankName,
: br.referenceDate as ReferenceDate,

h**d
发帖数: 474
3
If table A outer join B,C,D at the same time....how?

【在 a****n 的大作中提到】
: In DB2, the ourter join operator is
: FULL OUTER JOIN
: LEFT OUTER JOIN
: RIGHT OUTER JOIN

a****n
发帖数: 53
4
(A OUTER JOIN B ON ...) OUTER JOIN C ON ...
I can not remember the detail, but this is how
it works. I have done this myself before. You
can check the DB2 help file to get more detail
information.

【在 h**d 的大作中提到】
: If table A outer join B,C,D at the same time....how?
h**d
发帖数: 474
5
thanks a lot:)

【在 a****n 的大作中提到】
: (A OUTER JOIN B ON ...) OUTER JOIN C ON ...
: I can not remember the detail, but this is how
: it works. I have done this myself before. You
: can check the DB2 help file to get more detail
: information.

1 (共1页)
进入Database版参与讨论
相关主题
求解释correlated subquery
给一堆table,怎样能自动生成ERDDW BI ETL 问题 - Data Validation and Recordset Comparison (转载)
新手请教:无数据库,有数据,需要SQL 做表joinDBA 工作機會
誰來幫我開來開悄? Interesting SQL query难。想了一天了。大牛请进。
万佛,请教一个数据库问题 (转载)aks a simple SQL question
急问 hibernate query 如何在将学生成绩排序后,再加一个rank域
Access 数据库查询请教:SQL面试题。
1. Oracle vs. SQL92 Re: Just急问一个关于T-SQL的问题,谢谢
相关话题的讨论汇总
话题: db2话题: outer话题: join话题: outerjoin话题: bankname