1 QUERY_NAME The QUERY_NAME field attribute clause provides VAX DATATRIEVE with an alternate reference name for a field. VAX DATATRIEVE allows you to refer to a field either by its field name or by a specified query name. 2 Parameter dtrqn_quoted_string The VAX DATATRIEVE query name. 2 Syntax Rule The quoted string must be a valid VAX DATATRIEVE query name. The CDDL compiler does not check the quoted string for correct syntax. 2 Usage Notes o Only VAX DATATRIEVE supports the QUERY_NAME clause. Other processors ignore it. o You can specify a query name for a field only if you have specified a field name for it in the field description statement. You can not specify a query name for unnamed fields. o QUERY_NAME is different from NAME because VAX DATATRIEVE recognizes both the query name and the original field name. With NAME, the facility-specific name is the only name recognized by the specified language or language processor. o Choose a query name that is shorter and easier to remember than the actual field name. You can then choose a field name that is descriptive of the field's contents and purpose. o You can use 8-bit characters in CDDL quoted strings. 2 Example In the following example, the QUERY_NAME clause specifies TP as an alternate DATATRIEVE name for the field TOTAL_PRICE. TOTAL_PRICE DATATYPE IS VIRTUAL FIELD COMPUTED BY DTR AS "UNIT_PRICE * QUANTITY" QUERY_NAME FOR DTR IS "TP".