[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] Outer Join in SQR.
begin-select
a.x1
b.x1
FROM a,b
WHERE a.x1 =b.x1(+)
using your table
mtl_sv.sap_mtl_nbr = mtl_planner_sv.sap_mtl_nbr(+)
or
mtl_sv.sap_mtl_nbr(+) = mtl_planner_sv.sap_mtl_nbr
depending on which table has and does not have the common values.
This might help.
Shailesh Sugandhi <shailesh.sugandhi@patni.com> wrote:
Hi,
This is a query regarding the use of outer join in SQR.
I have to join 2 tables mtl_sv and mtl_planner_sv using
outer join.The key fields of both the tables are the same
ie. sap_mtl_nbr.
The join condition is
mtl_sv.sap_mtl_nbr = mtl_planner_sv.sap_mtl_nbr
mtl_planner_sv contains a field called planner code
which is getting selected and in the where clause of
which comes the joining condition.
There are values of sap_mtl_nbr which are there in mtl_sv
and not in mtl_planner_sv.
Output should come for all the sap_mtl_nbr in mtl_sv
even though many of them may not be in mtl_planner_sv.
I need help in joining the 2 tables using outer join
and i need the correct syntax in SQR.
Thanks in advance.
Regards,
Shailesh
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users