Loading topic
SELECT, WHERE, and ORDER BY, along with primary keys, foreign keys, and self-joins. It also assumes you are familiar with Oracle's DUAL table.2 min readSELECT, WHERE, and ORDER BY, primary and foreign keys, self-joins, and Oracle's DUAL table. This chapter focuses on how PRIOR connects one row to another in an Oracle hierarchical query.2 min readSELECT and WHERE clauses, primary and foreign keys, self-joins, and Oracle's DUAL table. This chapter focuses on LEVEL, an Oracle pseudocolumn used in hierarchical queries.2 min readSELECT, WHERE, and ORDER BY syntax, and that you understand a self-referencing table. A self-referencing table has a foreign key that points back to the same table. In employees, manager_id points to another employee's employee_id.2 min readSELECT, WHERE, and ORDER BY, and that employees has a self-referencing relationship: manager_id stores the employee_id of an employee's manager. The previous chapter's hierarchical query returns rows in tree order. This chapter shows how to contro2 min readSELECT, WHERE, and ORDER BY, primary and foreign keys, self-joins, and Oracle’s DUAL table. This chapter uses an employees table where employee_id is the primary key and manager_id stores another employee’s ID.2 min readSELECT, WHERE, and ORDER BY, understand primary and foreign keys, and can write a self-join. The examples use an employees table:2 min readSELECT statements, self-joins, primary and foreign keys, and Oracle's DUAL table. It also assumes an employees table in which manager_id stores the employee_id of an employee's manager. A NULL manager means the employee is at the top of the organizatio2 min readSELECT, WHERE, and ORDER BY, understand primary and foreign keys, and have used self-joins. It also assumes that employees.manager_id points to another row's employee_id.2 min readmanager_id points to another employee's employee_id. A valid organization chart eventually reaches a root whose manager_id is NULL.2 min readSELECT, GROUP BY, and self-joins, and that employees has an employee_id primary key, a manager_id parent key, and a numeric salary. A subtree contains a row and all of its descendants.1 min readSELECT, WHERE, and ORDER BY, understand Oracle’s DUAL table, and have seen self-referencing hierarchical queries. Here, CONNECT BY LEVEL generates rows without reading an application table.2 min readSELECT, WHERE, and ORDER BY, self-joins, primary and foreign keys, and Oracle's DUAL table. This chapter compares Oracle's legacy hierarchical syntax with recursive subquery factoring, often called recursive WITH.2 min readSELECT, WHERE, and ORDER BY, primary and foreign keys, self-joins, and the Oracle DUAL table. Hierarchical queries can become expensive because Oracle may visit many rows at every level. Performance depends mainly on the starting rows, the direction of traversal, branch2 min read