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

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Louis Davidson (dr_dontspamme_sql_at_hotmail.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 14:30:54 -0600


> It is possible; I have posted queries that take apart of CSV in one
> statement. Just change the "|" into a "," with the REPLACE() function
> and then use mine or one of several other kludges.

Oh, I cannot believe that I didn't think about that. Got so excited about
trying to solve the problem as stated, didn't think about solving it with a
simple command.

> Would you mind taking a quick survey for me? I have to several hundred
> new SQL programmers in the next year. You have made a typical "Newbie
> Error" and I want to know what your underlying assumptions were that
> lead to the flaw -- your "logic of failure", as it were. You can answer
> to my email instead of on the newsgroup.

I would be amazed if you get a response. 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.

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 is that it is not all
that certain that poor techniques are being employed.

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?

-- 
----------------------------------------------------------------------------
Louis Davidson (drsql@hotmail.com)
Compass Technology Management
Pro SQL Server 2000 Database Design
http://www.apress.com/book/bookDisplay.html?bID=266
Note: Please reply to the newsgroups only unless you are
interested in consulting services.  All other replies will be ignored :)
"Joe Celko" <joe.celko@northface.edu> wrote in message
news:uBSgNz1EEHA.1092@TK2MSFTNGP12.phx.gbl...
> >> What I'd like to be able to do is pass in a delimited string  ... and
> parse it .. I'm guessing that this may be impossible and I don't want to
> use a cursor. <<
>
>
> Now, would you rather be a good SQL instead?  If so, then normalize your
> database, and get rid of that "auto-increment" and re-name your data
> elements using ISO-11179 as a guide for starters.
>
> Would you mind taking a quick survey for me?  I have to several hundred
> new SQL programmers in the next year.  You have made a typical "Newbie
> Error" and I want to know what your underlying assumptions were that
> lead to the flaw -- your "logic of failure", as it were.  You can answer
> to my email instead of on the newsgroup.
>
> 1) How many years/months have your been programming? Was your first
> language a procedural language?  Was your first language an OO language?
>
> 2) How many years/months have your been programming in SQL?
>
> 3) Have you used a sequential file system before?
>
> 4) Have you used a network Database before?
>
> 5) Have you ever had a course in Data Modeling?
>
> 6 Have you ever had a course in RDBMS theory?  University or commercial?
>
> 7) Have you ever had a course in SQL?   University or commercial?
>
> --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: Another idea from pick goes mainstream...
    ... A relational database has nothing to do ... SQL is one of the ... is now considered THE language for any dbms implementing the relational ... Then, XML came out. ...
    (comp.databases.pick)
  • Re: If you were developing a database in Forth...
    ... instances of SQL server. ... relational database well is a difficult task. ... free to come up with your own query language philosophy/design. ...
    (comp.lang.forth)
  • Re: What is the name of the Language we are using & recommend book
    ... Can I have 2 sub forms in a form that are not sub forms of the other sub ... As for my process I am trying to create my Access Database in shells like ... QSL or Microsoft SQL Server Data Engine or what. ... language of queries, and the query design grid is just a tool to construct ...
    (microsoft.public.access.formscoding)
  • Re: Do you use PL/SQL
    ... SQL over C++ or Java are very little. ... - JDBC is not a programming language. ... Leave in the database what the database is good at. ...
    (comp.databases.oracle.server)
  • Re: Problems with querying date field
    ... the internal SQL datatypes are converted into host language ... A database is language or anything else-independent so long as you don't ... hard-pressed to do it in a way that is independent of the particular SQL ...
    (microsoft.public.sqlserver.programming)