Self-Referencing Employee Table
Easy
Schema Design
Create an Employees table where each employee may have a manager who is also an employee.
Table schema
Columns: id, name, manager_idSample data
The CEO has no manager; everyone else must reference an existing employee.
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.