BrianTyler
IS-IT--Management
I have a recurring need to drive ad-hoc one-off enquiries with a list of customer identification codes.
There are too many customer numbers to put them in a 'where' clause, so I need to put them into a temporary table and use this as a joined table or a sub-query
e.g. select cust_no,xxx,yyy,zzz
from tab1,tab2,tab3
where cust_no in
(select ??????????? )
Is there any DB2 syntax to accomplish this, or do I need a real table, populated with query code and customer number.
Thanks
Brian
There are too many customer numbers to put them in a 'where' clause, so I need to put them into a temporary table and use this as a joined table or a sub-query
e.g. select cust_no,xxx,yyy,zzz
from tab1,tab2,tab3
where cust_no in
(select ??????????? )
Is there any DB2 syntax to accomplish this, or do I need a real table, populated with query code and customer number.
Thanks
Brian