This section is not intended to be a course of the SQL language. Therefore, the focus will be put on the minimal set of differences that you must know in order to write queries properly.
A pure JavaScript database
SQL Cloud is a 100% JavaScript database running on the browser (Chrome, Safari, Edge, Firefox…) and any device (PC, tablet, mobile..).
It is read-only at the moment (no INSERT, UPDATE, DELETE).
The engine and the full data model (tables, indexes, etc.) are created when the HTML page is opened and everything is destroyed when the page is closed.
All the users run their own SQL Cloud database instance fully isolated from the rest.
All tables have no data and they are populated in real-time fetching data over the Atlassian’s Jira public REST API to answer the users' queries.
Show tables and columns
Explore the data model with these commands:
show tables
show columns from <table>
...
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
will work. Whereas
will not. |
KEY is a reserved word
As other database vendors, SQL Cloud does have reserved words that must be surrounded with accents or square brackets
...
Expand | ||
---|---|---|
| ||
We use the following convention for the table names:
|
Reckless queries (AKA Full scans) are not allowed
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Please pay attention to the having condition: count(*) > 2
Works! In this query the condition has been modified to uses column aliases: `Num. comments` > 2
Not works! |