Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

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 div as the first table to be processed.
  • SELECT dept as the next table.
  • SELECT emp as the next table.
  • The query is processed in the order: div,dept,emp
TitleResults for “How to create a CRG?”Also Available inAlert