Hi,
I want to know if it's possible to do a few intersection (WHERE EXISTS, IN, INNER JOIN, I really dont' know how???) on some select statement created dynamically. The number of fields and there names are always the same in the select statements. But the number can vary. So I want to do something like this (I know the syntax is not correct):
(Select ... from ... where ...)
INTERSECTION
(Select ... from ... where ...)
INTERSECTION
(Select ... from ... where ...)
INTERSECTION
(Select ... from ... where ...)
What I want in the output is the rows I can found in all of the 'select' statement results (so the intersection of all of them).
Thanks.
I want to know if it's possible to do a few intersection (WHERE EXISTS, IN, INNER JOIN, I really dont' know how???) on some select statement created dynamically. The number of fields and there names are always the same in the select statements. But the number can vary. So I want to do something like this (I know the syntax is not correct):
(Select ... from ... where ...)
INTERSECTION
(Select ... from ... where ...)
INTERSECTION
(Select ... from ... where ...)
INTERSECTION
(Select ... from ... where ...)
What I want in the output is the rows I can found in all of the 'select' statement results (so the intersection of all of them).
Thanks.