Hi everyone, I started with sqlalchemy a couple of weeks ago and I still have plenty to learn. I'm trying to translate this query to the expression language, but I have not been able to get what I need (right now I'm using text): SELECT p.id, p.title, ( SELECT ARRAY(SELECT t.title FROM tags_posts pt JOIN tags t ON t.id=pt.tag WHERE pt.post = p.id) ) AS post_tags FROM posts p ORDER BY p.title;
Thanks for any guidance. I've been stuck on this for a couple of days. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.