Re: UDF returns table to 'feed' a call back to itself ... how? (cross post)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Joe Celko (joe.celko_at_northface.edu)
Date: 03/26/04


Date: Fri, 26 Mar 2004 13:42:59 -0800


>> I would be amazed if you get a response. <<

One or two have been really good about a reply. I got one guy who was
using SQL has his first ever programming language (aaarrgh!). On
another newsgroup, I have had a good discussion with a lady who is from
the Nelson-Pick DBMS world. I found a few old IMS, IDMS types learning
DB2 on main frames. Most seem to be VB, C++, Java and whatever "PL du
jour" is being used in their shop currently. I am amazed at the "OO
kids" who have a strong physical file model in their heads instead of a
more abtract one; I would have guessed that OO would lead to more
abstract thinking.

Ever read Weinberg's PSYCHOLOGY OF COMUTER PROGRAMMING? It is a classic
and has been reprinted in a silver edition a little while back.

>> One question though, how can you be so sure that this is a newbie
error. In fact, the process that is being
used is taking denormalized data and making it more normal. It is not
out of the realm of possibility that this person has a normalized
database and is getting cruddy data from an outside source. <<

I have a three part series on how to do this kind of scrubbing in SQL in
DBAzine running right now. Hey, I can write kludge code with the best
of them :)

I don't advocate scrubbing data with SQL. But I had enough requests
from people who were going to do it anyway, I wrote down the steps. I
view it as the part of driver's ed where they tell you "When you are too
drunk to be driving, butyou are driving anyway, then do this..."

>> Don't get me wrong, I like to tear into arrogant newbies as much as
the next guy with an extra large hat holder but the problem .. <<

Nah, at my age I am sure I enjoy it more. My wife is at a monastary and
I cannot get permission to buy either a misstress or a 1965 Studebaker.

>> Say this data exists in a different system, in this format. Is there
a better way to do this kind of thing? Should it be done in a functional
language? <<

Sure; ETL tools are made for this. It is a whole software category
these days.

For parsing, a procedural language is probably a better choice. We used
to write stuff like this in C all the time to parse COBOL data into our
files in binary.

Or even use a parser generator like Meta (is it sitll around? It used
regular expressions and build a C program. It was easier to use than
YACC when you knew grep(), but not as powerful).

--CELKO--
 ===========================
 Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: Searching OO Associations with RDBMS Persistence Models
    ... I agree those pesky DB language do tend to thrash a lot. ... Both SQL and C++ can be extended with custom data types. ... The RDB has no idea that this is the ... The programming language is also always a detail. ...
    (comp.object)
  • Re: The Lambda lambada...Why embedded SQL is becoming irrelevant and why you should start looking at
    ... approach as implemented by COBOL and other languages where we embed SQL. ... Functional programming represents the extension of the OO paradigm into ... "Intermediate Language" and, for the purposes of this discussion, can be ... Vista comes with DotNET ...
    (comp.lang.cobol)
  • Re: Alternative to Dynamic SQL?
    ... know any of that because you're a entry level programmer using ORMs ... who hardly know sql. ... People want to be able to write their application in ONE programming ... language - at least the core of that application. ...
    (microsoft.public.sqlserver.programming)
  • Re: DELETE rows from Table lists
    ... This is a sequential file model we used in tape systems in the 1950's -- ... hundred new SQL programmers in the next year. ... language a procedural language? ... How many years/months have your been programming in SQL? ...
    (microsoft.public.sqlserver.programming)
  • Re: object system...
    ... for that you need machine language. ... isn't even as fast as other systems programming languages. ... Stroustrup's stated design goal was to enable ... all manner of elegance or abstraction can be sacrificed for speed, ...
    (comp.object)