updates examples to include schema
This commit is contained in:
+4
-4
@@ -37,7 +37,7 @@ SELECT
|
|||||||
aoi.quads,
|
aoi.quads,
|
||||||
aoi.significance,
|
aoi.significance,
|
||||||
c.num_cyclists_per_total_population
|
c.num_cyclists_per_total_population
|
||||||
FROM CDB_AreasOfInterestLocal('SELECT * FROM commute_data'
|
FROM cdb_crankshaft.CDB_AreasOfInterestLocal('SELECT * FROM commute_data'
|
||||||
'num_cyclists_per_total_population') As aoi
|
'num_cyclists_per_total_population') As aoi
|
||||||
JOIN commute_data As c
|
JOIN commute_data As c
|
||||||
ON c.cartodb_id = aoi.rowid;
|
ON c.cartodb_id = aoi.rowid;
|
||||||
@@ -72,7 +72,7 @@ A table with the following columns.
|
|||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM CDB_AreasOfInterestGlobal('SELECT * FROM commute_data', 'num_cyclists_per_total_population')
|
FROM cdb_crankshaft.CDB_AreasOfInterestGlobal('SELECT * FROM commute_data', 'num_cyclists_per_total_population')
|
||||||
```
|
```
|
||||||
|
|
||||||
### CDB_AreasOfInterestLocalRate(subquery text, numerator_column text, denominator_column text)
|
### CDB_AreasOfInterestLocalRate(subquery text, numerator_column text, denominator_column text)
|
||||||
@@ -113,7 +113,7 @@ SELECT
|
|||||||
aoi.quads,
|
aoi.quads,
|
||||||
aoi.significance,
|
aoi.significance,
|
||||||
c.cyclists_per_total_population
|
c.cyclists_per_total_population
|
||||||
FROM CDB_AreasOfInterestLocalRate('SELECT * FROM commute_data'
|
FROM cdb_crankshaft.CDB_AreasOfInterestLocalRate('SELECT * FROM commute_data'
|
||||||
'num_cyclists',
|
'num_cyclists',
|
||||||
'total_population') As aoi
|
'total_population') As aoi
|
||||||
JOIN commute_data As c
|
JOIN commute_data As c
|
||||||
@@ -150,7 +150,7 @@ A table with the following columns.
|
|||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM CDB_AreasOfInterestGlobalRate('SELECT * FROM commute_data',
|
FROM cdb_crankshaft.CDB_AreasOfInterestGlobalRate('SELECT * FROM commute_data',
|
||||||
'num_cyclists',
|
'num_cyclists',
|
||||||
'total_population')
|
'total_population')
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ SELECT
|
|||||||
m.trend_up,
|
m.trend_up,
|
||||||
m.trend_down,
|
m.trend_down,
|
||||||
m.volatility
|
m.volatility
|
||||||
FROM CDB_SpatialMarkovTrend('SELECT * FROM nyc_real_estate'
|
FROM cdb_crankshaft.CDB_SpatialMarkovTrend('SELECT * FROM nyc_real_estate'
|
||||||
Array['m03y2009','m03y2010','m03y2011','m03y2012','m03y2013','m03y2014','m03y2015','m03y2016']) As m
|
Array['m03y2009','m03y2010','m03y2011','m03y2012','m03y2013','m03y2014','m03y2015','m03y2016']) As m
|
||||||
JOIN nyc_real_estate As c
|
JOIN nyc_real_estate As c
|
||||||
ON c.cartodb_id = m.rowid;
|
ON c.cartodb_id = m.rowid;
|
||||||
|
|||||||
+1
-1
@@ -58,5 +58,5 @@ A table with the following columns.
|
|||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT ST_TRANSFORM(the_geom, 3857) as the_geom_webmercator, class
|
SELECT ST_TRANSFORM(the_geom, 3857) as the_geom_webmercator, class
|
||||||
FROM cdb_weighted_mean('SELECT *, customer_value FROM customers','customer_value','cluster_no')
|
FROM cdb_crankshaft.cdb_weighted_mean('SELECT *, customer_value FROM customers','customer_value','cluster_no')
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user