Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

hierarchal database table

SELECT e.id, e.first_name, e.role, e.manager_id, m.first_name
FROM employee e
LEFT JOIN employee m ON e.manager_id = m.id;
Source by www.databasestar.com #
 
PREVIOUS NEXT
Tagged: #hierarchal #database #table
ADD COMMENT
Topic
Name
6+8 =