tdietrich
09/24/2021, 9:44 AMWITH test1 AS (SELECT 1 AS abc FROM DUAL)
SELECT abc FROM test1
Here's another example that works as well:
WITH
TestEmployee AS (
SELECT
ID,
( LastName || ', ' || FirstName ) AS FullName,
Phone,
Email
FROM
Employee
WHERE
Email LIKE '%@test.com'
)
SELECT
ID,
FullName
FROM
TestEmployee
ORDER BY
FullName
Shai Coleman
09/24/2021, 1:30 PMWITH transaction_line_summary AS (
SELECT SUM(foreignamount) AS foreignamount_sum,
FROM transactionline
GROUP BY transaction
)
SELECT foreignamount_sum FROM transaction_line_summary
That query worked for some reason over the REST API and with NimbusQL, but not with SuiteQL Query Tool.tdietrich
09/24/2021, 2:49 PMShai Coleman
09/24/2021, 10:45 PM