Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion help with aggregation & group by
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark Van De Vyver  
View profile  
 More options Nov 6 2007, 4:24 am
From: "Mark Van De Vyver" <mvy...@gmail.com>
Date: Tue, 6 Nov 2007 20:24:37 +1100
Local: Tues, Nov 6 2007 4:24 am
Subject: Re: help with aggregation & group by
On Nov 6, 2007 7:50 PM, Sharon Rosner <cico...@gmail.com> wrote:

> > ... the following presentation (discussed on the Nitro mail list) and
> > the code beneath it illustrate a neat implementation of just this sort
> > of thing.  It seems very elegant and it would simplify the above
> > syntax, so may be worth looking into?

> Sequel is already much more advanced than that. Have a look at the way
> you can specify filters in Sequel.

Apologies, I'm not yet familiar with the filters.  I was just
superficially comparing the code inside the query block with Peter's,
in particular I thought:

from   :c => Customer, :b => Bank, :a => Account
  select b.name
  where  ((c.firstname == first1) |
          (c.firstname == first2)), etc.

appeared simpler than having blocks and .AS, but no doubt there is a
limit to his approach I'm unaware of.

> My plan is to take the the great
> filtering capability that we have and extend it so you can specify
> Ruby expressions for any SQL clause and have it automagically
> translated to SQL.

Sounds great!
Thanks for all the great work.

Regards
Mark

> sharon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.