Re: Need to import non-relational data into a database, and produce reports based on it.



Pierre.Canuck@xxxxxxxxx wrote:
I do have one remaining question, in your experience, how often do you
encounter record definitions having incomplete keys--i.e. you need to
look at the previous record(s) to relate them together? Is this
something rare?

This type of this is somewhat common. It can be processed using a "control-break" type of structure. From looking at your original message, the algorithm would look something like the below...

The-Top.
Read a record
at eof go to The-Bottom
If Type = "AC"
Wrap up current account
Current Account = Value of this record
else
if type = "PA"
Wrap up current sub-account (if exists)
Current Sub-Account = value of this record
else
Store detail item for current account/sub-account
end-if
end-if.
go to The-Top.
The-Bottom.
Wrap up current account/sub-account.
The-End.


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Albuquerque, NM! ~
~ / \/ o ~ ~
~ / /\ - | ~ daniel@thebelowdomain ~
~ _____ / \ | ~ http://www.djs-consulting.com ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"Who is more irrational? A man who believes in a God he doesn't see, or a man who's offended by a God he doesn't believe in?" - Brad Stine
.



Relevant Pages

  • Re: Biblical Ages
    ... >>> whether you accept the Biblical account or the older Vedic account, ... >>> was a supernatural intervention by God which enabled the extraordinary ... I think that the stories of people living ... >> an agricultural community, please do so. ...
    (talk.origins)
  • Re: OT: Heres ANOTHER spam scam
    ... > that God has called me, I have willed and given most ... I have distributed money to some ... > charity organizations in the U.A.E, Algeria, Malaysia ... your account, please e-mail him the complete account name, your address ...
    (rec.collecting.coins)
  • Re: He Loves You!!!!
    ... the context in which I happen to find myself in (apart from not asking ... that the ones who are in a position of authority in that context break ... be in account with God (attained only through repentance through ... perception of how I have received discernment as a Christian from God ...
    (soc.religion.quaker)
  • Re: Religulous
    ... and returned to life three days later. ... Sumerian mythology, it was the god Eki who created the first man, ... The biblical account of creation dates from the ... Your syllogism that because these accounts bear resemblances to myth, ...
    (rec.arts.movies.current-films)
  • Re: AiG amusement
    ... wouldn't it be an odd argument for Galileo to ... He wasn't arguing for a "naturalistic" explanation of something ... disclaimer, that we don't know what God could do, and therefore, ... Aristotelian-Ptolemaic account. ...
    (talk.origins)