|
6 | 6 | <p>The application supports a very limited subset of sql. This is a work in progress. Here are examples of what works:</p> |
7 | 7 |
|
8 | 8 | <code style="padding:initial"> |
9 | | -SELECT name, type, state, pin<br /> |
10 | | -FROM cities<br /> |
11 | | -WHERE name LIKE 'M%'<br /> |
12 | | - AND state = 'FL'<br /> |
13 | | - AND zipCode IN (33126, 33151)<br /> |
14 | | - AND averageAge BETWEEN 34 AND 65<br /> |
15 | | - AND averageSalary >= 55230<br /> |
16 | | - AND averageTemperature < 80 |
| 9 | + SELECT name, type, state, pin<br /> |
| 10 | + FROM cities<br /> |
| 11 | + WHERE name LIKE 'M%'<br /> |
| 12 | + AND state = 'FL'<br /> |
| 13 | + AND zipCode IN (33126, 33151)<br /> |
| 14 | + AND averageAge BETWEEN 34 AND 65<br /> |
| 15 | + AND averageSalary >= 55230<br /> |
| 16 | + AND averageTemperature < 80 |
17 | 17 | </code> |
18 | 18 |
|
19 | 19 | <div style="height:15px;"></div> |
20 | 20 |
|
21 | 21 | <code style="padding:initial"> |
22 | | -SELECT *<br /> |
23 | | -FROM Planets<br /> |
24 | | -WHERE SpacecraftWithinKilometers < 10000 |
| 22 | + SELECT *<br /> |
| 23 | + FROM Planets<br /> |
| 24 | + WHERE SpacecraftWithinKilometers < 10000 |
| 25 | +</code> |
| 26 | + |
| 27 | +<div style="height:15px;"></div> |
| 28 | + |
| 29 | +<code style="padding:initial"> |
| 30 | + SELECT SolarSystem, Galaxy |
| 31 | + FROM Planets |
| 32 | + WHERE SpacecraftWithinKilometers < 10000 |
| 33 | + GROUP BY SolarSystem, Galaxy |
25 | 34 | </code> |
26 | 35 |
|
27 | 36 | <p style="margin-top:15px;">At the moment the following things do not work:</p> |
28 | 37 | <ul> |
29 | | - <li>Grouping</li> |
30 | | - <li>Aggregations</li> |
31 | | - <li>Sorting</li> |
32 | | - <li style="text-decoration: line-through">LIKE operator</li> |
| 38 | + <li>Sorting</li> |
| 39 | + <li>Inequality operator (!=)</li> |
| 40 | + <li>Common SQL functions like GetDate, DateDiff, Count(*), etc are not supported yet</li> |
33 | 41 | </ul> |
0 commit comments