Actually, a better way might be to write a stored procedure that created a temporary table #T1, then did a SELECT from the first table into #T1 and then a SELECT from the second table into #T1. In this case, the data from the two tables would need to line up, data type-wise in the temp table. Brian J. Alves
Terrier Consulting, Inc.
Email: brian.alves@worldnet.att.net
VB / Crystal / SQLServer
(Currently available for consulting in Chicago)