
June 27th, 2007, 05:29 PM
|
 |
Contributing User
|
|
Join Date: Jul 2004
Location: Mexico, DF
Posts: 249
  
Time spent in forums: 3 Days 18 h 9 m 8 sec
Reputation Power: 10
|
|
Hi,
I think that I solved it, just needed to force matching the number of columns.
Code:
(SELECT case_id, NULL AS 'subcase_id', customer_name, owner, dispatch_time, NULL AS 'response_time', `type` FROM A)
UNION
(SELECT case_id, subcase_id, customer_name, owner, NULL as 'dispatch_time', response_time, `type` FROM B)
|