TGTGInsighttelegram intelligenceLIVE / telegram public index
← Data Analytics
Data Analytics avatar

TGINSIGHT POST

Post #2593

@sqlspecialist

Data Analytics

Views7,510Post view count
PostedFeb 1102/11/2026, 12:14 PM
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!