FKEY order
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
The following query shows the selection process for ordering based on FKEY information:
SELECT ... FROM dept, div, emp
WHERE emp.deptno=dept.deptno AND dept.divno=div.divno
The schema contains the following relationships. Each relationship is a pair of PKEY, FKEY tables: (dept,emp) and (div,dept).
SELECT divas the first table to be processed.SELECT deptas the next table.SELECT empas the next table.- The query is processed in the order:
div,dept,emp