Seth wrote:
I'm trying to set up a relation from one table to another that will
give me a count of the unique user_id's that have posted a comment to
a post.
For example: I've set up post as the parent table, and comments as
the child table (with post_id, user_id, comment_body, etc). What
Michael,
Thank you for your quick reply, however I must apologize as I'm a bit
of a SQLAlchemy newbie.
In the app I'm using the tables are setup using DeclarativeBase, so
the mapper() function is confusing me with its need for a class to be
defined as well as a table_name = Table(); and then