Re: [sqlalchemy] Getting Subquery with labels in SQLAlchemy 0.7.4 to Work

2014-08-27 Thread Michael Bayer
On Aug 25, 2014, at 6:07 PM, Anthony Phan Le wrote: > I am trying to convert the following SQL statement into an Sqlalchemy ORM > (Version 0.7.4) statement: > > SELECT [hermes_stage].[dbo].[run].[tank] > ,[id] > ,[experiment_id] > ,[local_id] > ,[start_time] > ,[

[sqlalchemy] Getting Subquery with labels in SQLAlchemy 0.7.4 to Work

2014-08-27 Thread Anthony Le
I am trying to convert the following SQL statement into an Sqlalchemy ORM (Version 0.7.4) statement: SELECT [hermes_stage].[dbo].[run].[tank] ,[id] ,[experiment_id] ,[local_id] ,[start_time] ,[stop_time] FROM [some_db].[run] INNER JOIN ( Sel

[sqlalchemy] Getting Subquery with labels in SQLAlchemy 0.7.4 to Work

2014-08-27 Thread Anthony Phan Le
I am trying to convert the following SQL statement into an Sqlalchemy ORM (Version 0.7.4) statement: SELECT [hermes_stage].[dbo].[run].[tank] ,[id] ,[experiment_id] ,[local_id] ,[start_time] ,[stop_time] FROM [some_db].[run] INNER JOIN ( Select max(start_