logo


57.2.12 Query Store: Command: Order By: Cross-Relational Sort


Sometimes, you need to sort on a field that is in a different table--a related parent table:

 

Query: Command: Order by: Cross relational sort

As you can see this Order by is for the [Location] table but uses the [HospitalRecord] table for its Order. This can be done as the [HospitalRecord] table is directly related to the [Location] table and the [HospitalRecord] table is the ONE table. See the Database Schema for more details “Database Schema: Table Relationships” on page 507.



Harrowex Pty Ltd
http://www.hxmedical.com
Voice:+ 61 4 27 344 279
Fax: +61 3 52 439 019
static@hxmedical.com