pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonah H. Harris <jonah.harris@gmail.com>
To: Andrew Hammond <andrew.george.hammond@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL generator
Date: Wed, 26 Jul 2006 00:00:42 -0400
Message-ID: <36e682920607252100r5fbea54bh31f7a2fa29c7ea26@mail.gmail.com> (raw)
In-Reply-To: <1153855895.203541.278400@i42g2000cwa.googlegroups.com>
References: <1153395978.590189.261100@75g2000cwc.googlegroups.com>
	<1153855895.203541.278400@i42g2000cwa.googlegroups.com>

> > A typical query then may look like this:
> >
> > Select all 'toys' from 'Walmart' where average_sales(100) > 100000 and
> > avaerage_cost(100,10) <= 1 and item_date between "01-Jan-00" and
> > "01-Jan-06"

See Microsoft's English Query for SQL Server or the SQ-HAL project for examples:

http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part9/c3261.mspx?mfr=true

http://www.csse.monash.edu.au/hons/projects/2000/Supun.Ruwanpura/

In general, it's easier to write the SQL than to optimize natural
language-based query translation.

-- 
Jonah H. Harris, Software Architect | phone: 732.331.1300
EnterpriseDB Corporation            | fax: 732.331.1301
33 Wood Ave S, 2nd Floor            | jharris@enterprisedb.com
Iselin, New Jersey 08830            | http://www.enterprisedb.com/



view thread (5+ messages)  latest in thread

Message-ID: <36e682920607252100r5fbea54bh31f7a2fa29c7ea26@mail.gmail.com>
Permalink:  ../36e682920607252100r5fbea54bh31f7a2fa29c7ea26@mail.gmail.com/
Also on:    postgresql.org/message-id/36e682920607252100r5fbea54bh31f7a2fa29c7ea26@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jonah.harris@gmail.com, andrew.george.hammond@gmail.com
  Subject: Re: SQL generator
  In-Reply-To: <36e682920607252100r5fbea54bh31f7a2fa29c7ea26@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox