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 Problem with my query that has a join and ordered by a max
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
 
Jeremy Evans  
View profile  
 More options Oct 20 2012, 9:52 pm
From: Jeremy Evans <jeremyeva...@gmail.com>
Date: Sat, 20 Oct 2012 18:52:23 -0700 (PDT)
Local: Sat, Oct 20 2012 9:52 pm
Subject: Re: Problem with my query that has a join and ordered by a max

On Saturday, October 20, 2012 3:44:00 PM UTC-7, desbest wrote:

> I'm having problems with this query, which I've put on Github Gist for
> syntax highlighting so you can see what's going on better.

> What I want to do, is join the groups table to the posts table, which I've
> done. But I only want to retreive the tables that have their pond column,
> being more than 1.

> The link is here.

> https://gist.github.com/3925058

Your first error is "SQLite3::SQLException: no such column:
posts.datenumber", which should be obvious, that column doesn't exist in
that table.  You didn't post the schema for the tables involved in the
query, but if I had to guess, you want groups__datenumber instead of
posts__datenumber.

Your second error is "comparison of Symbol with Integer failed", which is
because you are on ruby 1.9 and Sequel doesn't override the Symbol#>
method. Use a virtual row, switch "exclude(:posts__pond > 0)" to
"exclude{posts__pond > 0}".

Jeremy


 
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.