David B
09/17/2021, 2:39 AMautoJoin()
, createCondition()
, createColumn()
, etc)?David B
09/17/2021, 2:41 AMAlan Fitch
09/17/2021, 3:11 AMquery.create
is any better.Clay Roper
09/17/2021, 2:09 PMquery.create()
will only serve you for Netsuite, whereas learning SuiteQL will get you started on a skill set that's relevant in other domainsscottvonduhn
09/17/2021, 2:36 PMquery.create
is clunky and requires many more line of code compared to the same query in SuiteQL, and is even harder to read and maintain than a saved search. Having used both, I strongly prefer using an actual SuiteQL query.jen
09/17/2021, 5:11 PMjen
09/17/2021, 5:11 PMjen
09/17/2021, 5:13 PMjen
09/17/2021, 5:14 PMscottvonduhn
09/17/2021, 5:44 PMjen
09/17/2021, 5:55 PMDavid B
09/19/2021, 11:06 PMasMappedResults()
is a handy method)David B
09/19/2021, 11:07 PMAlan Fitch
09/19/2021, 11:07 PMAlan Fitch
09/19/2021, 11:08 PMAlan Fitch
09/19/2021, 11:10 PMAlan Fitch
09/19/2021, 11:11 PMDavid B
09/19/2021, 11:21 PMAlan Fitch
09/19/2021, 11:22 PMAlan Fitch
09/19/2021, 11:22 PMstalbert
09/21/2021, 4:22 PMjen
09/21/2021, 4:28 PMtdietrich
09/21/2021, 4:54 PMtdietrich
09/21/2021, 4:56 PMSELECT
ID,
LastName,
FirstName,
Phone,
Email
FROM
Employee
WHERE
Email LIKE '%@test.com'
ORDER BY
LastName,
FirstName
You can then refer to it in another query, like this:
SELECT
TestEmployee.*,
( Supervisor.LastName || ', ' || Supervisor.FirstName ) AS SupervisorName
FROM
#TestEmployee
INNER JOIN Employee AS Supervisor ON
( Supervisor.ID = TestEmployee.Supervisor )
jen
09/21/2021, 7:10 PMAlan Fitch
09/23/2021, 12:13 AMAlan Fitch
09/23/2021, 12:15 AM