| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: database systems and organizational intelligence
"Eric Kaun" <ekaun_at_yahoo.com> wrote in message
news:p41vc.5086$Zq.1808_at_newssvr32.news.prodigy.com...
> "Dawn M. Wolthuis" <dwolt_at_tincat-group.com> wrote in message
> news:c98fu9$4mj$1_at_news.netins.net...
<snip>
> > > > Of all of the languages in the mix, the "relational one" (SQL) is
one
> of
> > > the
> > > > most problematic, causing us to treat stored data differently than
> other
> > > > data, for one thing
> > >
> > > I agree with you here, but probably not for reasons you'd like. I wish
> > > programming languages were "more relational", as opposed to making the
> > data
> > > "more graph-like" like XML and OO.
> >
> > the data IS more graph-like -- I just want to view it as it is ;-)
> > [over-simplification]
>
Hmmm. I'm thinking of the namespace as the root, so I guess I work with just one graph.
> > > > (and then tied to that bloomin' 1NF for another).
> > >
> > > Well, as Date says, 1NF is something of a matter of perspective,
> >
> > as well as the premise for all of relational theory, being that all
> > normalization requires 1NF to start with
>
Yes, the entire functional dependency approach gets at some key aspects of maintainability for any model.
> Date's point is
> simply that the DBMS sees a single value at any given tuple/attribute
> "point". That single value can be "complex", but that's a type you've
> defined, and the DBMS doesn't care about that - you have to do the work.
No
> special treatment for types.
Which means you have to do the work when retrieving the data too. There is more than one database hosted by a SQL-DBMS where the users opted to put a delimted list in a field, but then they have work to cope with that.
<snip>
> Agreed, except that I'd be fine with spec'ing them in XML and then leaving
> > them in this tree structure for use - no need to do that XML to
SQL/RDBMS
> > mapping at all.
>
Since XML is hardly a dictatorial format, it is pretty easy to specify a constraint with it -- just stick a SQL statement between tag delimiters ;-) [ignore that]
> I've yet to see a simple logic or data structure that XML
> can't render so opaque as to be unusable. Even the cleanest XML is dirty.
>
>
Yes, it is a risk-assessment thing. SQL-RDBMS implementors often treat all constraints as if they have an equal risk related to every constraint.
> > We can let a user say they want
> > to enter and view address lines as max of 30 characters without the DBMS
> > nosing in on that and fixing that length in the schema, for example.
Sure
> > there is a risk, but it is a risk worth taking when there is no fixed
> > reason -- just the whim of the current user -- for sticking to 30
> > characters.
>
Agreed.
> > We don't want users knocking down supporting walls without
> > involving IT professionals, but we have got to let them hang pictures
and
> do
> > other makeovers of their applications without requiring an extreme
> makeover
> > (using doctors).
>
> Yes, true. This can be a slippery slope, but I think this sort of
necessity
> argues for better typing, not less typing.
I'm still trying to figure out what I think about typing -- what, when, where, how -- there is something in current SQL-DBMS approach that really bugs me and I haven't pinpointed it but it is related to the brittle nature of many database implementations.
> > Relational theory says it is about how to view the data, not how it is
> > stored. In that case, the users know how they want to view it and the
> > constraints should originate from there.
>
Yup, I had even forgotten about Joe, but it was a collective statement, not singling out one user's requirements.
>
When I typed that, I knew you would have legitimate disagreement, but I still pretty-much agree with my statement because that government requirement comes into play when a user identifies it as required for the organization. The government doesn't interface directly with DBA's (or shouldn't) in non-government organizations. So I don't see another direction, other than end-users, from which these requirements should come, but if conflicting requirements come in, that must be negotiated and we wouldn't want to implement something that would reduce the system qualtiy (reliability, security). But semantic constraints should all arise from the users of the system.
> > Some can stay at the front as
> > "local constraints" (aka application software). Relational theorists
seem
> > to have "centralized control" as the key concept. I think I'm a more
> > progressive parent than that. Sure there are risks, but it seemed to
have
> > worked with my kids. Users can take responsibility too and recognize
the
> > implications of changing the max size of a field by one character, for
> > example, or even switching from storing only numbers as a product ID to
> > permitting alpha-numeric.
>
> Overconstraint is a problem too, as you indicate. No need to specify
numbers
> only for an ID that the users determine, typically. And even if it is
> system-generated (and thus probably numeric), that's no reason to store it
> only as digits.
Agreed.
> > > The common schema can be a relational engine. I think you'll find it
> much
> > > harder using a tree structure, since rules don't tend to respect
> > hierarchies
> > > very well (you can writes rules about hierarchies, but that doesn't
mean
> > the
> > > rules themselves are easily expressed hierarchically!).
> >
> > Rules can be built by specifying one function to apply after another --
> > ands, ors, comparison operators, booleans, etc. A fork-in-the-road
> function
> > might lead to function A or function B as the next function -- rules are
> > simply trees, even if a simple list tree, right? [I'll admit I didn't
> think
> > that through completely]
>
> A given rule might be seen as a tree, but the set of rules for a business
is
> much more complex than that. And in any event, you're talking purely about
> flow of decisions, not about the data to which those decisions are
applied.
> That forms an overlapping structure. And given the complexity of the
> functions that can be specified, I'd doubt that a simple tree is better
than
> a full language of some sort. Yes, parsing is more difficult, but it only
> has to be written once.
>
>
>
That works for me. I don't care if the constraints are declarative as long as the application can use a service to get what it needs. That service (future-style DBMS, perhaps) can have declarative constraints, XML docs, OO objects or whatever as input to the constraints engine.
> > > > I just haven't seen the fruit from that relational seed
> > >
> > > None of us have, although I'd still be interested to hear more from
> those
> > > who dealt with old network databases as SQL was coming to the
> forefront...
> > > SQL was embraced as solving problems, but did it? Did it solve some
and
> > > introduce new ones?
> > >
> > > > and now that it is almost dead, I think I'll skip it ;-)
> > > > [yes -- just pokin'] Cheers! --dawn
> > >
> > > Well, unfortunately (for you) I don't think it's dead yet, and have
> great
> > > hopes for its revival.
> >
> > only if it is greatly fixed, and my take is that the starting point for
> > fixing it is not the current RDBMS implementations.
>
>
I can sympathize with that, but having coded many JCL (job control language) "card decks" in a previous life, as well as passing lots of common-quote files around, I'm fine with replacing parm declarations and data passing with XML documents. It lacks elegance on the one hand, but provides a viable standard that is AT LEAST NOT FLAT RELATIONS!! (ducking)
> It's used because it's widely-discussed;
> that's all. Software developers, for some reason still unknown to me,
jumped
> onto the text markup bandwagon and sold the farm to do so. It's biting the
> asses' asses as we speak - hopefully it will be recognized as the snake it
> is, rather than just pushing those with I.T. budgets to further offshore,
> because gawrsh, this I.T. stuff is just too darned expensive (just like
> education - it is expensive, but consider the price of the alternative).
>
> - erk
I really, really would like to see some of the expense of data handling removed across the board in our industry and it appears to me that it is in the interface with the SQL-DBMS that there is a huge cost that could be lessened. But that's just a hunch at this point ... still workin' on it. Cheers! --dawn Received on Wed Jun 02 2004 - 21:16:35 CDT
![]() |
![]() |