MySQL has 2 tables with the same rows.
For an edit I need one TreeList without true leafs and edit the true leafs separately in a Grid and for the Employees i need one TreeList with the true leafs.
How can I create MySQL query to make sure I can use two separate tables as a one?
The simple way to show the Tree is this query:
$sql = 'SELECT * FROM '.TP.'lv_tree AS lvtree '.
'WHERE lvtree.parentId = ?';
$result = $db->connect()->prepare($sql);
$result->bindParam(1, $_REQUEST['node']);
$result->execute();
I have already tried JOIN, LEFT JOIN, etc., but to no avail.


