Hierarchical SQL Queries: Databases for Developers #16

The Magic of SQL
The Magic of SQL
61.5 هزار بار بازدید - 6 سال پیش - Often data contains a parent-child
Often data contains a parent-child relationship between rows in the same table. For example, company org charts and family trees. You can use the power of SQL to traverse these hierarchical relationships. There are two ways to do this in Oracle Database: - Connect By - Recursive With Watch this video to learn about data trees and find out how these work! Further reading: Hierarchical queries in the docs: docs.oracle.com/en/database/oracle/oracle-database… Recursive subquery factoring in 11.2: oracle-base.com/articles/11g/recursive-subquery-fa… Take the course! devgym.oracle.com/pls/apex/dg/class/databases-for-… Need help with SQL? Ask us over on AskTOM: asktom.oracle.com/ Twitter: twitter.com/ChrisRSaxon Daily SQL Twitter tips: twitter.com/SQLDaily All Things SQL blog: blogs.oracle.com/sql/ ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
6 سال پیش در تاریخ 1397/04/02 منتشر شده است.
61,567 بـار بازدید شده
... بیشتر