Bizzdesign logo
  • Contact us
    Alfabet Support Hopex Support Horizzon Support Unify Support
  • Bizzdesign Community
  • Bizzdesign University
  • Bizzdesign
 
  1. Alfabet help
  2. About query definition for Alfabet configurations
  3. Define JOINS in a text editor
  • Define queries to configure Alfabet
  • Define SQL queries
    • Refer to object classes and object class properties
    • Allowed query types
    • Define the SELECT clause
    • Define conditions
    • Display translated object data
  • Define Alfabet queries
    • Access Alfabet query editors
    • Structure of the Alfabet query
    • Define for which object class to find objects
      • Define the base class in the Alfabet Query Builder
      • Define the base class in a text editor
    • Define which data to show
      • Define Show properties in the Alfabet Query Builder
      • Define Show properties in a text editor
      • Calculate aggregated values
    • Join information about other object classes
      • Define JOINS in the Alfabet Query Builder
      • Define JOINS in a text editor
      • Types of Joins
      • Operators for Joins
      • Specify multiple conditions for a join
      • Join the same class multiple times
      • Use Distinct to avoid identical results
      • Complex join scenarios
    • Filter data with conditions
      • Define a WHERE clause in the Alfabet Query Builder
      • Define a WHERE clause in a text editor
      • Operators for WHERE clauses
      • Boolean in WHERE clauses
      • Specification of dates
      • Specification of wildcards
      • Handling of special characters
  • Use Alfabet parameters
    • Use of the Alfabet parameter CURRENT_MANDATE in native SQL
  • Format data representation with Alfabet instructions
    • Define column names and captions
      • Define column name and caption in Alfabet query language
      • Define column name and caption in native SQL
      • Instructions to alter column name and caption
      • Reference columns in instructions by index number
  • Define filters for configured reports and selectors
    • Defining a WHERE Clause for a filter field
  • Define queries in XML
  • Define an index to enhance performance
    • Create a class key
    • Create an audit key
  • Define database views
    • Create SQL based database views
    • Create AQL based database views
    • Use database views in queries
    • Change the execution order
    • Test the database view
    • Semantic analysis of the database view
      • Add an object class to the semantic analysis
      • Add an object class property to the semantic analysis
      • Remove manually added entries from the semantic analysis
    • Delete a database view

Define JOINS in a text editor

To add a JOIN to an object class for an Alfabet query defined in a text editor, you must specify the JOIN under the base class definition with the following line of code:

  • JoinType NameOfClassToJoin ON ObjectClassName.PropertyNameOperatorObjectClassName.PropertyName

In case the JOIN is specified to link an object class that is referenced by an object class property of the type ReferenceArray or Reference , the JOIN is defined as:

  • JoinType NameOfClassToJoin ON NameOfReferencingClass.NameofPropertythatReferencesToTheOtherClass = NameofReferencedClass.REFSTR

The type of JOIN can be InnerJoin, OuterJoin, LeftJoin , and RightJoin . For more information about JOIN types, see the section about join types.

In the example, the object class ApplicationGroup is added via an InnerJoin to the base class Application because only applications that are assigned to application groups are relevant for the report and vice versa.

  • ALFABET_QUERY_500
  • FIND
  • Application
  • InnerJoin ApplicationGroup ON Application.ApplicationGroups = ApplicationGroup.REFSTR

Alfabet Resources

  • Support
  • Learning Portal
  • Downloads
  • Announcements
  • Release Lifecycle
  • Cloud Availability

Support

  • Alfabet Help
  • Hopex Help
  • Horizzon Help
  • Unify Help
  • Knowledge Base

Resources

  • Bizzdesign Community
  • Courses and E-learning
  • Blog Articles
  • Events & Webinars
  • Resource Center

Company

  • Bizzdesign
  • Alfabet Support Policy
  • Hopex Support Policy
  • Privacy Policy
  • Code of Ethics
  • Legal Notices

Copyright © Bizzdesign