Re: [sqlalchemy] SQL Alchemy Help - Where Clauses

2011-02-27 Thread Michael Bayer
On Feb 27, 2011, at 8:12 AM, stoneferry wrote: > Hi I'm wondering if someone could help me with SQLAlchemy and WHERE > clauses since I'm having trouble putting a query together. > > What I want in my WHERE clause is the below, noting the brackets: > > WHERE > > (game_participation.was_a_sub =

[sqlalchemy] SQL Alchemy Help - Where Clauses

2011-02-27 Thread stoneferry
Hi I'm wondering if someone could help me with SQLAlchemy and WHERE clauses since I'm having trouble putting a query together. What I want in my WHERE clause is the below, noting the brackets: WHERE (game_participation.was_a_sub = %s AND game_participation.was_subbed >= %s) OR (game_participatio