Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to join two tables in direct query

Hello, I have two tables: The first tables shows my orders and products which were ordered with a quantity and the second table shows all my available products without quantity field.  So I want to...
  • Greg_Deckler's avatar
    Greg_Deckler
    6 years ago
    Try this:

    VAR __Table =
    NATURALINNERJOIN(
    'Products',
    SELECTCOLUMNS(
    'Orders',
    "SKU",[SKU],
    "Quantity",[Quantity]
    )
    )