HP3000-L Archives

August 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Evan Vaala <[log in to unmask]>
Reply To:
Evan Vaala <[log in to unmask]>
Date:
Tue, 20 Aug 2002 10:11:21 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
On Mon, 19 Aug 2002 23:47:23 -0500, Tom of Bunyon <[log in to unmask]>
wrote:

>I think the problem with MRP systems is that reational DBs don't do
>recursion very well - they have to emulate it. A lot of the more complex
>items have hugely complex sub-item trees. If the combination of trees
>exceeds the number of levels that the relational DBs program for, it just
>drops the deeper levels altogether with no complaints.

I have found the Oracle "connect by/start with" clause of the select
statement to be extremely usefull for creating a tree structure via one sql
command.


select  LEVEL, BOMNO, COMNO
from  PSF where ODATE > ? and EDATE <= ?
connect by prior COMNO = BOMNO
start with BOMNO = '1001';


This is quite handy for displaying/processing a tree structure.  Definitely
not the most effecient for MRP.  For MRP processing I would read in one
level at a time, as needed, and cache/recall these levels into/from main
memory.

Evan Vaala
Rockwell Automation

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2