Is there anyway to do a `left join` in NetSuite se...
# suiteanalytics
n
Is there anyway to do a
left join
in NetSuite search? I have a customer search, and I am joining their transactions. I want to be able to get customers who don't have any transactions as well. But NetSuite only supports `inner join`s does anyone know a way to get these into the search?
k
Do a search from the customer record joined to transactions table
All searches by default are left joins...
Which leads to some duplication issues when joining to more than one table
Now, if you have a transaction criteria, then what you do is turn on expression builder and then do an or statement
n
I think they are inner joins, they only display when a customer has a transaction. If there are no transaction, then that customer doesn't get displayed as well because there isn't a match
m
You can do a customer search, and instead of adding filters for the transaction criteria you want, use formulas in the result columns with case statement to filter. However that will be very very slow.
👍 1
b
you can try using expressions and adding the filter
Copy code
Or Transaction : Internal ID is none
might require special positioning or parenthesis depending on what your other filters look like