The reason why the employee-manager example is so common, is because it hits the nail on the head. A self join on a table looks for pairs of rows, like any join, but with both rows coming from the same table. Nothing special really.
More Related Contents:
- query to find number of employees under each manager
- Simplest way to do a recursive self-join?
- How to get matching data from another SQL table for two different columns: Inner Join and/or Union?
- Explanation of self-joins
- What is SELF JOIN and when would you use it? [duplicate]
- What are projection and selection?
- combinations (not permutations) from cross join in sql
- Postgresql query between date ranges
- What does collation mean?
- Backup a single table with its data from a database in sql server 2008
- How to check if a column exists before adding it to an existing table in PL/SQL?
- How in H2DB get sql dump like in MySql?
- How to use SQL LIKE condition with multiple values in PostgreSQL?
- SQL Server equivalent to MySQL’s EXPLAIN
- How to get the last day of month in postgres?
- How can I solve ORA-00911: invalid character error?
- Try_Convert for SQL Server 2008 R2
- Why doesn’t Oracle SQL allow us to use column aliases in GROUP BY clauses?
- SQL Server variable scope in a stored procedure
- Determine if one coordinate is in radius of another
- Entity Framework Skip/Take is very slow when number to skip is big
- SQL SERVER DATETIME FORMAT
- SQL: Using DATEADD with bigints
- SQL WITH clause example [duplicate]
- Insert all values of a table into another table in SQL
- Oracle ‘Partition By’ and ‘Row_Number’ keyword
- converting int to real in sqlite
- What is difference between foreign key and reference key?
- When to use EXCEPT as opposed to NOT EXISTS in Transact SQL?
- Concat all column values in sql