Every database vendor like Oracle, MSSQL, PostgreSQL, MySQL, and H2,… speaks the same principal language SQL with a lot of hues specific to each implementation forming a dialect. Like all of them, SQL Cloud has its own dialect.
...
Code Block | ||
---|---|---|
| ||
select * from PROJECT |
will work.
Whereas
Code Block | ||
---|---|---|
| ||
select * from project |
will not.
...
No schema names
Many database vendors group their tables into schemas (i.e.: PUBLIC). SQL Cloud does not support them.
...
No prefix: Jira Work
SF_ prefix: Jira Software
SM_ prefix: Jira Service Manager
Aggregation conditions do not support aliases
Please pay attention to the having condition: count(*) > 2
Code Block | ||
---|---|---|
| ||
SELECT `i`.`KEY`as `Issue`, count(*) as `Num. comments`
FROM ISSUE `i`
LEFT JOIN ISSUECOMMENT `ic` ON `ic`.`ISSUEID` = `i`.`ID`
WHERE `i`.`JQL` = 'PROJECT = TALH'
GROUP BY `i`.`KEY`
HAVING count(*) > 2 |
Works!
In this query the condition has been modified to uses column aliases: `Num. comments` > 2
Code Block |
---|
SELECT `i`.`KEY`as `Issue`, count(*) as `Num. comments`
FROM ISSUE `i`
LEFT JOIN ISSUECOMMENT `ic` ON `ic`.`ISSUEID` = `i`.`ID`
WHERE `i`.`JQL` = 'PROJECT = TALH'
GROUP BY `i`.`KEY`
HAVING `Num. comments` > 2 |
Not works!
SQL Cloud - Constraints
In this section, you will find relevant information specific to our SQL Cloud implementation.
...