Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 612409FBC35 for ; Tue, 24 Apr 2007 09:43:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 41370-06 for ; Tue, 24 Apr 2007 09:43:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id D1B7A9FBBD4 for ; Tue, 24 Apr 2007 09:43:12 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 001BF143767; Tue, 24 Apr 2007 13:40:52 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id AD813274116; Tue, 24 Apr 2007 13:40:52 +0100 (BST) Message-ID: <462DFAD4.7030001@archonet.com> Date: Tue, 24 Apr 2007 13:40:52 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Dmitry Turin Cc: pgsql-sql@postgresql.org Subject: Re: Fwd: Re[2]: We all are looped on Internet: request + transport = invariant References: <14110647859.20070413105812@narod.ru> <20070413150936.GA31517@phlogiston.dyndns.org> <1684192906.20070419090827@narod.ru> <20070419134808.GB14187@phlogiston.dyndns.org> <814860828.20070420120819@narod.ru> <4628A08F.9050804@archonet.com> <1177072978.760.40.camel@pampa> <7939450187.20070420185808@narod.ru> <1177095450.760.71.camel@pampa> <1312216062.20070423112045@narod.ru> <1177329421.737.39.camel@pampa> <3817356375.20070424150200@narod.ru> In-Reply-To: <3817356375.20070424150200@narod.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.603 tagged_above=0 required=5 tests=AWL=-0.986, BAYES_40=-0.185, FORGED_RCVD_HELO=0.135, URIBL_SBL=1.639 X-Spam-Level: X-Archive-Number: 200704/228 X-Sequence-Number: 28228 Dmitry Turin wrote: > Good day, Joe. > >>>> I would change your examples to use less abstract >>>> data, like department/employee, customer/product/order/order_line > > J> I contend that then you'd find more people > J> receptive to your ideas or at least able to criticize them from more > J> concrete viewpoints. > > I expected, that you already read > http://sql4.by.ru/site/sql40/en/author/wave_eng.htm > (i added output into this paper). > Case of "department/employee" is "Example 1" on this paper. I'd not expect people to read lengthy articles on a general-questions mailing list, but I've skimmed at least as far as example 2. 1. What does it mean for one flight to be contained within another? I can see how one flight might follow another, but not contained. Do you not need some new object "flight_chain" or similar? 2. Surely a flight should contain two cities (since it connects two cities). Alternatively, the needs to indicate to which it's referring either as / or or similar. 3. How am I constructing these queries? The whole point was so I didn't have to learn SQL, yes? Unfortunately, the syntax for these queries isn't obvious enough to me that I can see how to write them without some form of query-builder, or reference manual. 4. How am I using these queries? I'm still not clear what use it is to have XML without a schema. Let's say I want to build a holiday website. How does this TML setup avoid me having to write any php/perl/etc? -- Richard Huxton Archonet Ltd