Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99742 invoked from network); 18 Mar 2010 11:09:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 11:09:22 -0000 Received: (qmail 40707 invoked by uid 500); 18 Mar 2010 11:09:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40572 invoked by uid 500); 18 Mar 2010 11:09:20 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 40565 invoked by uid 99); 18 Mar 2010 11:09:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 11:09:20 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webautomator@gmail.com designates 209.85.220.226 as permitted sender) Received: from [209.85.220.226] (HELO mail-fx0-f226.google.com) (209.85.220.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 11:09:13 +0000 Received: by fxm26 with SMTP id 26so2180401fxm.15 for ; Thu, 18 Mar 2010 04:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=tM+e9iOIWzNz3OO090S5qGEIX8vUxVdvZ72VJ4DfWes=; b=Al2DLKpEic5rpLvwUJypzpq63nk7Q6HRusOG7FEQGi8CAI576MBvZTUVqTu4lCreYf 2ARBU7347oA27wyfVcwwPApBuZI3fgfEaRkheBfOjYb1X3nSNHSY0R+XffVlyp3dFQld ddexLk4C63lmb2wfBINCv1sisBPNabBfnPXAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iF0NfrHeIXSD9LPlGugvE9Ux+uHtEeV+45jX8I1e1Oza7Qy56+Ge0zXVESkwD/NvUW nnrYO8pJotY00Pb4LHenl14krCYF0/4Soql0O5AmQXy8ang8hkYKoPcc4bbOYRGmVjPs WCz5nWqZXwJwoBZLFoiqbv/mbxNuevJpfXCz8= MIME-Version: 1.0 Received: by 10.87.72.8 with SMTP id z8mr15084321fgk.37.1268910532577; Thu, 18 Mar 2010 04:08:52 -0700 (PDT) In-Reply-To: <4BA10732.5040607@gmail.com> References: <855911.22501.qm@web29112.mail.ird.yahoo.com> <4B9F9E8A.5090303@gmail.com> <93d36c111003160833x1d40b4bbw7d2c00275e90a75@mail.gmail.com> <4B9FAA82.9090003@gmail.com> <93d36c111003170457y13e98dfbic7a5d2468e7c37e4@mail.gmail.com> <93d36c111003170612t62272f1bl5c5b9e0d907d2f7d@mail.gmail.com> <4BA0EB92.3010501@gmail.com> <93d36c111003170750k29e6d20bx8c8a1f9db907efad@mail.gmail.com> <93d36c111003170803o19f710ecneea73ed8c680b3a7@mail.gmail.com> <4BA10732.5040607@gmail.com> Date: Thu, 18 Mar 2010 13:08:52 +0200 Message-ID: <93d36c111003180408k486dd841sde6f3984a86cdd22@mail.gmail.com> Subject: Re: Google Summer of Code From: =?KOI8-R?B?8c4g8NLPx9LBzc3J09Q=?= To: derby-dev@db.apache.org Content-Type: multipart/alternative; boundary=001485f87cfc8bcb7e048211415a --001485f87cfc8bcb7e048211415a Content-Type: text/plain; charset=ISO-8859-1 That is clearly understood. And how it is connected to the things against data types? You wrote that that it make sense to figure out data types compatibility. I thought the main focus in SQL variations that force different strategies of data conversion when executing statements. Explain. John 2010/3/17 Bryan Pendleton > ?? ??????????? wrote: > >> No, not understood. You are focusing on JDBC compatibility from the >> database side? Or you looking for compatibility of types, not provided to >> JDBC? There are convertions to generic* types due to JDBC connectivity >> issues... SQL code would run in most cases, but data would not always be >> consistent. Consistency is a MUST, as I understood (?). Explain more >> detailed. John >> > > Hi John, > > It is true that SQL code runs in most cases, but there are many small > variations between the precise features of SQL that are supported by > the various database implementations. > > Consider, for example, the ORDER BY clause. > > Most database systems allow ORDER BY to be present in simple SELECT > statements: > > select id, firstname, lastname from employee order by lastname > > This has been part of the SQL standard for 20 years and is widely > supported. > > However, there are lots of variations on this SQL statement. For example, > is it supported to use ORDER BY on a column which is not present in the > SELECT > list, as in: > > select id from employee order by lastname > > Or, is it supported to use ORDER BY on an expression, as in: > > select lastname from employee order by lower(lastname) > > Or, is it supported to use ORDER BY in a sub-query, as in: > > select * from (select lastname from employee order by lastname) t > > Over the years, we have tracked down many such variations of SQL > statements, and > explored the issues of how Derby's support for SQL compares to the support > provided by databases such as MySQL or Postgres (or others). > > These are the sorts of compatibility issues I was particularly referring > to. > > thanks, > > bryan > > --001485f87cfc8bcb7e048211415a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable That is clearly understood. And how it is connected to the things against d= ata types? You wrote that that it make sense to figure out data types compa= tibility. I thought the main focus in SQL variations that force different s= trategies of data conversion when executing statements. Explain. John

2010/3/17 Bryan Pendleton = <bryanwpendleton@gmail.com<= /a>>
?? ??????????? wrote:
No, not understood. You are focusing on JDBC compatibility from the databas= e side? Or you looking for compatibility of types, not provided to JDBC? Th= ere are convertions to generic* types due to JDBC connectivity issues... SQ= L code would run in most cases, but data would not always be consistent. Co= nsistency is a MUST, as I understood (?). Explain more detailed. John

Hi John,

It is true that SQL code runs in most cases, but there are many small
variations between the precise features of SQL that are supported by
the various database implementations.

Consider, for example, the ORDER BY clause.

Most database systems allow ORDER BY to be present in simple SELECT stateme= nts:

=A0select id, firstname, lastname from employee order by lastname

This has been part of the SQL standard for 20 years and is widely supported= .

However, there are lots of variations on this SQL statement. For example, is it supported to use ORDER BY on a column which is not present in the SEL= ECT
list, as in:

=A0select id from employee order by lastname

Or, is it supported to use ORDER BY on an expression, as in:

=A0select lastname from employee order by lower(lastname)

Or, is it supported to use ORDER BY in a sub-query, as in:

=A0select * from (select lastname from employee order by lastname) t

Over the years, we have tracked down many such variations of SQL statements= , and
explored the issues of how Derby's support for SQL compares to the supp= ort
provided by databases such as MySQL or Postgres (or others).

These are the sorts of compatibility issues I was particularly referring to= .

thanks,

bryan


--001485f87cfc8bcb7e048211415a--