- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- BoM type table Join
Operating System - HP-UX
1752794
Members
5706
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2004 03:06 AM
тАО01-13-2004 03:06 AM
BoM type table Join
I have two tables which combined complete a 'Bill of Materials' Type table join. i.e. table 1 links to table 2 and table 2 links back to table 1.
As an example of this I have included the following query
select p2.orderno, p1.pegging_type
from mrp_plan p1, mrp_plan p2, mrp_pegging g
where p1.plan_sequence = g.plan_sequence and
g.peggingno = p2.peggingno and
p2.pegging_type = 'P' and
p2.orderno like 'W000%';
This query climbs one level up the pegging tree to tell me if the demand is from a sales order or a forcast.
My question is what is the proper structure for this type of join and how do I climb up multiple levels?
DB software is Oracle 8.1.7
As an example of this I have included the following query
select p2.orderno, p1.pegging_type
from mrp_plan p1, mrp_plan p2, mrp_pegging g
where p1.plan_sequence = g.plan_sequence and
g.peggingno = p2.peggingno and
p2.pegging_type = 'P' and
p2.orderno like 'W000%';
This query climbs one level up the pegging tree to tell me if the demand is from a sales order or a forcast.
My question is what is the proper structure for this type of join and how do I climb up multiple levels?
DB software is Oracle 8.1.7
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2004 03:36 AM
тАО01-13-2004 03:36 AM
Re: BoM type table Join
You probably have to use the "walking tree" technic if I understand your Query.
I assume you have Metalink access.
search for "walking tree"
regards,
Jean-Luc
I assume you have Metalink access.
search for "walking tree"
regards,
Jean-Luc
fiat lux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2004 04:49 AM
тАО01-13-2004 04:49 AM
Re: BoM type table Join
Hi,
what do mean by climbing up levels?
I was looking for a way to combine three tables in metalink and this I found:http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=333481.999
try this:
select p2.orderno, p1.pegging_type from (mrp_plan p1 left join mrp_pegging g on p1.plan_sequence = g.plan_sequence) left join mrp_plan p2 on g.peggingno = p2.peggingno where p2.pegging_type = 'P' and p2.orderno like 'W000%';
greetings,
Michael
what do mean by climbing up levels?
I was looking for a way to combine three tables in metalink and this I found:http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=333481.999
try this:
select p2.orderno, p1.pegging_type from (mrp_plan p1 left join mrp_pegging g on p1.plan_sequence = g.plan_sequence) left join mrp_plan p2 on g.peggingno = p2.peggingno where p2.pegging_type = 'P' and p2.orderno like 'W000%';
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2004 11:54 PM
тАО01-13-2004 11:54 PM
Re: BoM type table Join
I have looked at the Wakling tree situation but it seems only to work for a single table.
In my case I have 2 tables.
mrp_plan links to mrp_pegging by peggingno. I can then use plan_sequence field to link mrp_pegging back to my parent record in mrp_plan.
Is there a good way to do this?
Is my explanation make sense?
Regards,
John.
In my case I have 2 tables.
mrp_plan links to mrp_pegging by peggingno. I can then use plan_sequence field to link mrp_pegging back to my parent record in mrp_plan.
Is there a good way to do this?
Is my explanation make sense?
Regards,
John.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP