Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: A Normalization Question

Re: A Normalization Question

From: Neo <neo55592_at_hotmail.com>
Date: 20 Jul 2004 17:44:46 -0700
Message-ID: <4b45d3ad.0407201644.25e3dfc5@posting.google.com>


> > One can't derive that 'brown is composed of b, r, o, w, n' from an
> > empty db; but a demo could convince me otherwise.
>
> SELECT "brown" AS [string], spell('brown') AS spelling;
>
> Function spell(s As String) As String
> n = Len(s)
> r = Left(s, 1)
> For i = 2 To n
> r = r + "," + Mid(s, i, 1)
> Next
> spell = r

If the query is stored in the db, then info to spell 'brown' is coming from SQL stored in db. If the query is not stored in db, the info to spell 'brown' is not coming from the db but from the string 'brown' in the SQL statement itself. You derived that 'brown is composed of b, r, o, w, n' not from an empty db but from info within the SQL statement. Received on Tue Jul 20 2004 - 19:44:46 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US