And now that I think about it all of the date functions seem to be
different between the major databases. I am not sure which if any of
them is actually following the standard.

Chris

-----Original Message-----
From: midrange-l-bounces+cpayne=thecrowngrp.com@xxxxxxxxxxxx
[mailto:midrange-l-bounces+cpayne=thecrowngrp.com@xxxxxxxxxxxx] On
Behalf Of Chris Payne
Sent: Wednesday, December 21, 2005 10:25 AM
To: Midrange Systems Technical Discussion
Subject: RE: Recommendation for a good iSeries SQL reference?

"fetch first n rows only" is not standard I don't think, what about
common table expressions? Materialized query tables? And I know that IBM
has a patent on encoded vector indexes so that can't be in a standard.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Eovino
Sent: Wednesday, December 21, 2005 10:14 AM
To: Midrange Systems Technical Discussion
Subject: Re: Recommendation for a good iSeries SQL reference?

Are there iSeries extensions?  If so, I'd love to know what they are. 
Any time we've asked for one, they've told us that they adhere to
ANSI, and that we need to write a UDF.

Mike E.

On 12/21/05, Vernon Hamberg <vhamberg@xxxxxxxxxxx> wrote:
> Good points, Mike. And reading iSeries docs would
> lead to using iSeries extensions. All flavors
> have their own extensions to the standards.
>
> Now as to ANSI, there is a standards compliance
> statement in each SQL Reference manual. Here it
> is for V5R3 & V5R2 (V5R1 had only the first 2):
>
> ANSI (American National Standards Institute)
> X3.135-1992, Database Language SQL - Entry Level
> ANSI (American National Standards Institute)
> X3.135-4: 1996, Database Language SQL - Part 4:
> Persistent Stored Modules (SQL/PSM)
> ANSI (American National Standards Institute)
> X3.135-1999, Database Language SQL - Core
>
> There is also the "SQL Reference for Cross-Platform Development" book
at
> ftp://ftp.software.ibm.com/partnerworld/vic/hardware/pdfs/b4e.pdf
> that has an appendix that lists terminology
> differences between ANSI and DB2 - this is a
> cross-platform DB2 manual, BTW. It does not go so
> far as to relate SQL terms to native iSeries
> terms, such as table to physical file, etc.
>
> I highly recommend going to the site at
> http://www.iseries.ibm.com/db2 if you want to
> investigate things more thoroughly. There are
> comparisons within the DB2 family (iSeries seems
> to have almost everything that is in the list at
> V5R3) and lots of other stuff. Dig around.
>
> Finally, I can recommend a nice basic tutorial at
> http://www.w3schools.com - I've been using it for
> Javascript information, but there are several
> other things there, including SQL. It reminds
> you, for one, that there is a "standard". But
> each vendor has their own extensions. But if you
> get through that tutorial (not hard, you can
> probably do it in 1-2 hours at most), you will
> have a very nice start. Then you need to learn
> just what the built-in functions are, what other
> statements there might be, etc., from the SQL Reference manual for
iSeries.
>
> I'll say what I always do - you don't need to
> know much - learn the basic structure of the
> SELECT statement and you are good to do for, I
> suppose, 90% of SQL work. The WHERE clause is
> used in DELETEs and UPDATES (and sometimes in
> INSERTs, within a SELECT that returns the rows to
> insert). In other words, SQL consists of using
> the same basic building blocks repeatedly.
>
> At the above site there is also a tutorial on ADO
> - aimed at usage within ASP in web pages, but
> I'll bet the basics are there, very similar to
> what you'd do in any Visual Basic example.
> There's also one for .NET - both of these can be
> used against an iSeries database, so the
> generality and universality still comes into play.
>
> HTH
> Vern
>
> At 11:12 PM 12/20/2005, you wrote:
>
> >Isn't IBM's implementation of SQL pretty much the ANSI standard?
> >
> >Reading a book for Oracle or SQLServer may lead you to try some of
> >their proprietary extensions, which invariably leads to heads beating
> >against walls.  The references really aren't that bad, and the list
is
> >very helpful.
> >
> >Learn to write UDF's.
> >
> >Mike E.
> >
> >On 12/14/05, Ron Adams <rondadams@xxxxxxxxx> wrote:
> > > Walden,
> > >
> > > I am pretty much referring to basic SQL
> > statements, but probably from a more
> > > advanced (technical) perspective, so I wouldn't exactly call it
"basic". I
> > > found a really good online reference at
> > >
> >
http://searchoracle.techtarget.com/generic/0,295582,sid41_gci1075959,00.
html
> > > that has a wide range of examples, however,
> > it is geared specifically toward
> > > Microsoft & Oracle SQL. As most of us on the list know, IBM's
(iSeries) DB2
> > > has some special nuances that make coding SQL statements a little
bit more
> > > difficult. In short, while a general purpose
> > SQL manual might be a good read
> > > for understanding basic SQL, I was hoping to find something more
specific
> > > and/or advanced that would be able to help me cut down on the
trial and
> > > error coding cycle.
> > >
> > >
> > >
> > > On 12/14/05, Walden H. Leverich <WaldenL@xxxxxxxxxxxxxxx> wrote:
> > > >
> > > > >Some real basic stuff is just missing from the examples.
> > > >
> > > > Jim,
> > > >
> > > > Are you speaking of basic SQL stuff, or basic stuff about
integrating
> > > > SQL w/RPG or Cobol? If it's basic SQL stuff (select, where,
join, group
> > > > by etc.) have you considered that SQL is a standard, especially
with the
> > > > basic stuff, and just about any book on SQL (iSeries specific or
not)
> > > > will get you what you need?
> > > >
> > > > -Walden
> > > >
> > > > ------------
> > > > Walden H Leverich III
> > > > Tech Software
> > > > (516) 627-3800 x3051
> > > > WaldenL@xxxxxxxxxxxxxxx
> > > > http://www.TechSoftInc.com
> > > >
> > > >
> > > --
> > > This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
> > > To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> > > To subscribe, unsubscribe, or change list options,
> > > visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> > > or email: MIDRANGE-L-request@xxxxxxxxxxxx
> > > Before posting, please take a moment to review the archives
> > > at http://archive.midrange.com/midrange-l.
> > >
> > >
> >
> >--
> >This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
> >To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> >To subscribe, unsubscribe, or change list options,
> >visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> >or email: MIDRANGE-L-request@xxxxxxxxxxxx
> >Before posting, please take a moment to review the archives
> >at http://archive.midrange.com/midrange-l.
>
>
> --
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.