I'm submitting the annual BFN questionnaire for my...
# suiteql
b
I'm submitting the annual BFN questionnaire for my SuiteApp, and there's a new question regarding SuiteQL.
If your SuiteApp uses SuiteQL, are any of your queries use both SQL-92 and Oracle SQL?
(Yes, the question has that weird wording) How can I tell if my SuiteQL is using both SQL-92 and Oracle SQL or not? I wasn't aware there's a difference.
a
I would venture to guess that the question is
If your SuiteApp uses SuiteQL, are any of your queries allowed to use both SQL-92 and Oracle SQL?
I'm pretty sure the answer is no.
m
I had this same exact question!
Btw, I answered Yes, and then was told my answer was unacceptable. I was told our queries needed to use either Oracle SQL or SQL-92
😂 1
I sent a follow up to NetSuite as the question has confused our engineering team a bit. Sounds like it's not super straightforward to understand the sql statements unique to each language
a
Yup. Although I think it's only in a single query i.e a query must not use features from both SQL-92 and Oracle. A SuiteApp can have two separate queries in two separate languages.
m
right. Fwiw, we thought we might have a query that uses features of each language, but it still does work on 2022.1
a
Knowing Oracle my guess is the code looks like this:
Copy code
try { return  evaluatewithsql92(sql)} 
catch { return evaluatewithoracle(sql)} 
catch(e) { return "oops"}
😂 2
@burkybang CTEs and window functions come to mind as examples of sql paradigms not supported by SQL-92. Finding an example of sql not supported by Oracle but supported by SQL-92 is a challenge. CC: @tdietrich
☝️ 1