UNION Query SAGE 100 (MAS90)

Does the Connector support UNION Queries for Sage 100 Data?

Have a simple UNION that just doesn't seem to work. See sample below:

Select

JT_Transaction.SalesOrderNo as 'SalesOrderNo',

JT_Transaction.TotalCost+JT_Transaction.TotalLaborCost+JT_Transaction.TransactionAmt as 'TotalCost',

(JT_Transaction.ParentCostRecognized+JT_Transaction.NonChrgLDDCCosts)*-1 as 'InvoicedCost',

JT_Transaction.TransactionDate as 'TransactionDate'

From JT_Transaction

UNION

Select

JT_TransactionHistory.SalesOrderNo as 'SalesOrderNo',

JT_TransactionHistory.TotalCost+JT_TransactionHistory.TotalLaborCost+JT_TransactionHistory.TransactionAmt as 'TotalCost',

(JT_TransactionHistory.ParentCostRecognized+JT_TransactionHistory.NonChrgLDDCCosts)*-1 as 'InvoicedCost',

JT_TransactionHistory.TransactionDate as 'TransactionDate'

From JT_TransactionHistory

Parents
  • 0

    Unions are fine but using UQE for Providex.  I'm seeing if we can check the code.  Hopefully we can have an answer on that too. 

  • 0 in reply to Sandra Smith

    Sandra - I have a word doc titled "Universal Query Engine" for the Providex database.

    At the end of the doc it states:

    Current Limitations

    - UNION Queries are not supported

    -  Subqueries are not supported

    -  Column names MUST be prefixed with the Table/Alias name eg. Customer.Name where  Customer is a table of customers.

    -  Certain string concatenations will fail if the data types of the operands are not strings. It’s always safer to cast an operand to a string to be safe. Eg. The expression ISNULL(Order.Total, 0) + ‘ is the order value’ will fail because Order.Total is not a string. 

  • 0 in reply to Doc102208

    Good point. I will confirm that, however, it might not be supported by Sage technical support since it is used more for customized reports but not necessarily means does not work. 

Reply Children