× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Qryout file problem
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Wed, 28 Apr 1999 11:08:22 -0500

Not to be reminiscent of the Dilbert cartoon in which Saint Dogbert banishes 
the fellow spouting useless database concepts by showing him actual code but 
here goes.

Database normalization has many levels and I am not sure on each of them.  Many 
of the bad databases I've seen recently come from the PC world.  Microsoft 
Access and (using database loosely) any spreadsheet.  Sample database, using a 
bill of material example, would look like:
Masterpart      child1  child2  child3  child4  etc...
XYZ             A       B       C
TWO             C       B       D
THREE           A       C       D       E

Now the problem is when you try to find out all the parts containing C.  
Querying these kind of databases is grunt work.  To avoid this problem we would 
normalize the database into two databases.  The master, containing all 
information about all parts, both master and children.  And then a 
bill-of-material database informing you of what children are on which part.  
The b-o-m database would look like the following:
Master part     child
XYZ             A
XYZ             B
XYZ             C
TWO             C
TWO             B
TWO             D
THREE           A
THREE           C
THREE           D
THREE           E
And then you could do:  SELECT MASTERPART FROM BOM WHERE CHILD='C'
This would tell you what parts contain 'C'.






John.Taylor@britax-pmg.com on 04/28/99 10:40:19 AM
Please respond to MIDRANGE-L@midrange.com@Internet
To:     MIDRANGE-L@midrange.com@Internet
cc:      

Subject:        Re: Qryout file problem

Rob

>No problem, write an RPG program to 'denormalize' your database.

I did'nt in fact realise we had a normal database. Anyway I'm not a
programmer so I must follow the query route.

Thanks 

John


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>Re: Qryout file problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Rob</FONT>
</P>

<P><FONT SIZE=2>&gt;No problem, write an RPG program to 'denormalize' your 
database.</FONT>
</P>

<P><FONT SIZE=2>I did'nt in fact realise we had a normal database. Anyway I'm 
not a programmer so I must follow the query route.</FONT>
</P>

<P><FONT SIZE=2>Thanks </FONT>
</P>

<P><FONT SIZE=2>John</FONT>
</P>

</BODY>
</HTML>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.