I have a database of a company XYZ.
It has two tables Departments-(customer support, executives, HR)
and Machines-(PC1, PC2, PC3, PC4)
The PC

I want my tree view to look like

XYZ

-- Customer Support
-------PC1
-------PC2

-- Executives
-------PC3

-- HR
-------PC4