Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
SuiteQL Table Joins
Hi There
I can't find any documentation on the syntax for Suiteql.
I am trying to create multiple table joins though I am getting an 'invalid or unsupported search' error
This is the query
SELECT
TO_CHAR(CURRENT_DATE, 'YYYY') AS current_year,
SUBSTR(BUILTIN.DF(budgetsMachine.period), 5, 4) AS budgetsMachine_year,
BUILTIN.DF(budgets.account) AS budget_account
FROM
budgets
LEFT JOIN budgetsMachine ON budgetsMachine.budget = budgets.id
LEFT JOIN customer ON customer.entityid = budgets.customer
WHERE
TO_CHAR(CURRENT_DATE, 'YYYY') = SUBSTR(BUILTIN.DF(budgetsMachine.period), 5, 4);
What is the issue with the join?
I am able to query the data when I have a join on only one table