Brian Erickson wrote:
> I believe that this is how you would do it. You will have to test it.
>
> select date,qty,product,client from table1 where month(date)=5
> union all
> select date,qty,product,client from table2 where month(date)=5
> order by
> client into table temp
>
I would go this path :
select date,qty,product,client
into table temp
from (
select *
from table1
union all
select *
from table2
) FullTable
where month(date) = 5
order by client
The advantage is that you have your selection and output code in only
one place which avoids silly mistakes. OTOH this will certainly not work
in VFP6, don't know if it will work in 7, 8 or 9 (probably will in 9).
It does work in SQLServer.
HTH
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.