Re: Databases as objects
Date: Sat, 23 Dec 2006 15:58:26 GMT
Message-ID: <Cmcjh.36669$cz.539467_at_ursa-nb00s0.nbnet.nb.ca>
DBMS_Plumber wrote:
> Thomas Gagne wrote:
First, I understand Thomas just fine. As others here have noted, they
understand him just fine too.
Second, it makes little sense for Thomas to address me directly. Having
noted Thomas' lack of intellectual honesty, I already added him to my
>
>>Bob, you're misunderstanding me.
Third, by denying his objective reality, Thomas renders himself unlikely to learn much of anything and incapable of understanding his own lack of knowledge.
I do not want to replace SQLese with
>>OOese.
and that it is better
>>for multiple programs to call the procedure than for each to embed the SQL.
One will invoke the program exactly once. Thus, one has no need for multiple invocations of the program from other programs.
>>Are we still in disagreement?
Yes, very much so. I added Thomas to my killfile because he is unlikely to ever understand the disagreement. See here: http://www.apa.org/journals/features/psp7761121.pdf or (oh! the irony!) here: http://gagne.homedns.org/~tgagne/contrib/unskilled.html
> I dunno about Bob, but I disagree. Your suggestion would remove
> perhaps the most powerful feature of a SQL DBMS - dynamic SQL. Most of
> the non-trivial systems I've worked on have supported--to a greater or
> lesser extent--mechanisms whereby users could manipulate the UI to
> generate SQL queries 'on the fly'.
While certainly powerful, I am not sure I would call that the most powerful of the features removed. One loses so many.
> If you want to pull that into a 'stored procedure', feel free to do
> so, but then you're just using the modern SQL-DBMS as a kind of
> tp-monitor or application server, only one that shares an address space
> with the data manager. All of which prompts a gigantic shrug.
I suspect Thomas exemplifies the pitfalls of knowing products without fundamentals.
> If you want to 'think different' about this kind of thing, then
> consider, instead of putting the SQL inside the procedural code, the
> potential of putting the procedural code inside the SQL.
>
> CREATE TABLE MyTable (
> ID SomeIdentifierDomain PRIMARY KEY,
> Data SomeApplicationSpecificDomain NOT NULL,
> Related AnotherIdentifierDomain FOREIGN KEY REFERENCES
> ( AnotherTable )
> );
>
> WITH AnalyticResult ( Label, DisplayData ) AS (
> SELECT A.SomeData,
> SomeAggregate( T.Data )
> FROM MyTable T, AnotherTable A
> WHERE T.Related = A.ID
> AND ComplexDomainSpecificPredicate ( A.MoreData, 'Do Re Me Fa
> Lo Sa Te Do')
> GROUP BY A.SomeData
> )
> SELECT OpenGraphWindow ( R.Label, R.DisplayData, :UI_Handle )
> FROM AnalyticResult R;
>
> But then, you can do this already. No one does, is all.
Received on Sat Dec 23 2006 - 16:58:26 CET