I am inexperienced in SQL / SQLAlchemy, and am trying to write a SQLAlchemy query from a table called Event with data such as this:
I would like to select the rows with Type equal to "Viewed Tab", but only if there does not exists a row with the same Session value that has a Type equal to "Mobile View". So in the sample data above I would want the query to return the rows with EventId equal to 150 and 154, but not 147.
Thank you.