TGTGInsighttelegram intelligenceLIVE / telegram public index
Post content
Post content
β SQL Interview Challenge!π§ π» ππ»ππ²πΏππΆπ²ππ²πΏ: Find all employees who *donβt have a manager* (i.e., manager_id is NULL) and list their names and departments. π π²: Using WHERE with IS NULL: SELECT name, department FROM employees WHERE manager_id IS NULL; β Why it works: β IS NULL filters rows where manager_id is missing. β Simple and fast for identifying top-level employees in an organization. πBonus Tip: Combine with LEFT JOIN to also include department names from another table if needed. π¬Tap β€οΈ if this helped you!