Hi,

How an I do intersection?

The manual says:


Row objects can be combined at the Python level. Here we assume:

>>> print rows1
person.name
Max
Tim
>>> print rows2
person.name
John
Tim

You can do a union of the records in two set of rows:

>>> rows3 = rows1 & rows2
>>> print rows3
name
Max
Tim
John
Tim

You can do a union of the records removing duplicates:

>>> rows3 = rows1 | rows2
>>> print rows3
name
Max
Tim
John



Regards,

Ashraf

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to