Can I do a query using join for two tables in mySQL?
SELECT COUNT (*) AS itema_count, itema_operation, old_itema_code, new_itema_code
FROM itema_changes
WHERE edit_operation IN ('-', '+', '>')
AND customer_id= '123'
AND timestamp > '2006-01-15' AND pickup_timestamp < '2006-01-21'
ORDER BY itema_count
DESC LIMIT 10
JOIN
SELECT COUNT (*) AS itemb_count, itemb_operation, old_itemb_code, new_itemb_code
FROM itemb_changes
WHERE edit_operation IN ('-', '+', '>')
AND customer_id= '123'
AND timestamp > '2006-01-15' AND pickup_timestamp < '2006-01-21'
ORDER BY itemb_count
DESC LIMIT 10
SELECT COUNT (*) AS itema_count, itema_operation, old_itema_code, new_itema_code
FROM itema_changes
WHERE edit_operation IN ('-', '+', '>')
AND customer_id= '123'
AND timestamp > '2006-01-15' AND pickup_timestamp < '2006-01-21'
ORDER BY itema_count
DESC LIMIT 10
JOIN
SELECT COUNT (*) AS itemb_count, itemb_operation, old_itemb_code, new_itemb_code
FROM itemb_changes
WHERE edit_operation IN ('-', '+', '>')
AND customer_id= '123'
AND timestamp > '2006-01-15' AND pickup_timestamp < '2006-01-21'
ORDER BY itemb_count
DESC LIMIT 10