Hi, I have a small problem understanding the join system in storm, If we take the join example in the tutorial, ( https://storm.canonical.com/Tutorial#Joins ) it involves a scenario where there is an Employee table and Company table, employee's reference companies and it suggest the following code to select companies that the employee 'Ben' belongs to: """ >>> origin = [Company, Join(Employee, Employee.company_id == Company.id)] >>> result = store.using(*origin).find(Company, Employee.name.like(u"Ben %"))
>>> [company.name for company in result] [u'Sweets Inc.'] """ Which works great, but in my situation I would have to find more than one employee, for example, I may need to find the companies that 'Ben', 'Steve' and 'John' all belong to but am not quite sure how to go about doing that, just adding more clauses to the find query regarding the other employee's does not work. Thanks, Gord -- Gordon Allott ([email protected])
signature.asc
Description: This is a digitally signed message part
-- storm mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
