filmov
tv
SQL| Find managers for every employee in the table|Common SQL interview question|Self Join explained
Показать описание
In this video we discuss a very commonly asked SQL question.
Question?
--Show the name of the manager for each employee in the same row?
--Result set should contain four columns, namely:
--1)emp_id (Employee Id)
--2)emp_name (Employee Name)
--3)manager_id (Manager Id)
--4)manager_name (Manager Name)
Self join concept is used to write the query.
Self join links a table to itself. To use a self join, the table must contain a column (call it X), that acts as the primary key and a different column (call it Y) that stores values that can be matched up with the values in Column X.
"Thanks for watching. If you liked this video, make sure to subscribe for more!”
Feedbacks are always welcome!
#dataprojecthub
#data_project_hub
Question?
--Show the name of the manager for each employee in the same row?
--Result set should contain four columns, namely:
--1)emp_id (Employee Id)
--2)emp_name (Employee Name)
--3)manager_id (Manager Id)
--4)manager_name (Manager Name)
Self join concept is used to write the query.
Self join links a table to itself. To use a self join, the table must contain a column (call it X), that acts as the primary key and a different column (call it Y) that stores values that can be matched up with the values in Column X.
"Thanks for watching. If you liked this video, make sure to subscribe for more!”
Feedbacks are always welcome!
#dataprojecthub
#data_project_hub
SQL Query to find all Employees with its managers Using Self Join ? || Self Join in SQL
Part 2 SQL query to get organization hierarchy
SQL Explained in 100 Seconds
SQL Interview Question | How to find all levels of Employee Manager Hierarchy | Recursion
SOLVE 5 SQL QUERIES IN 5 MINUTES (PART 1) | MASTER IN SQL | SQL INTERVIEW QUESTIONS
Start Learning SQL in 3 Easy Steps
5 Best SQL Websites to Practice n Learn Interview Questions for FREE
Lec-70: Find Nth(1st,2nd,3rd....N) Highest Salary in SQL | Imp for Competitive & Placement exam
#3 || PostgreSQLServer Architecture || Postmaster || WAL || Shared Buffers..
SQL Self Join Concept | Most Asked Interview Question | Employee Salary More than Manager's Sal...
Find Employees Whose Salary Higher Than Their Manager Salary in SQL | Self Join in SQL
Part 8 SQL Query to find department with highest number of employees
SQL Query to find all employee details earning more than their managers
Data Analyst SQL Question for Beginner
Learn Basic SQL in 15 Minutes | Business Intelligence For Beginners | SQL Tutorial For Beginners 1/3
Secret To Optimizing SQL Queries - Understand The SQL Execution Order
5 Basic SELECT Statement Queries in SQL
SQL Query to find Manager with at least 2 employees reporting to him
REAL SQL Interview Problem | Hierarchical data in SQL
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
HOW TO JOIN 3 OR MORE TABLES IN SQL | TWO WAYS
SQL Tutorial for Beginners
SQL Server Tutorial - One-to-many and many-to-many table relationships
BEST Websites to Learn SQL FAST 🏃🏽♂️💨
Комментарии