(SELECT id, Name, '' AS Status, id AS q FROM account)
UNION
(SELECT id, Name, Status, ParentId AS q FROM account_history WHERE Status='deleted')
ORDER BY q DESC
LIMIT 0, 10
(SELECT id, name, `date` FROM t1)
UNION
(SELECT id, name, `date` FROM t2)
ORDER BY `date` LIMIT 10
(SELECT id, name, 'tmpvalue' as uniq_for_t2, `date` FROM t1)
UNION
(SELECT id, name, uniq_for_t2, `date` FROM t2 WHERE Status='del')
ORDER BY `date`
LIMIT 10
SELECT *
FROM
account t0
account_history t1
WHERE
t1.StatusId='deleted'
ORDER BY
t0.id,
t1.ParentId
DESC LIMIT 0, 10