This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
admin:features:rollups:create [2011/01/10 22:41] els created |
admin:features:rollups:create [2012/10/26 14:57] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTOC~~ | ||
| + | |||
| {{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
| Line 5: | Line 7: | ||
| ===== Rollup Tables ===== | ===== Rollup Tables ===== | ||
| - | [[admin:features:rollups:home|Overview]] -> [[admin:features:rollups:design|Design]] -> **[[admin:features:rollups:create|Creation]]** -> [[admin:features:rollups:indexing|Indexing]] -> [[admin:features:rollups:optimization|Optimization]] | + | [[admin:features:rollups:home|Overview]] | [[admin:features:rollups:design|Design]] | **[[admin:features:rollups:create|Creation]]** | [[admin:features:rollups:indexing|Indexing]] | [[admin:features:rollups:optimization|Optimization]] |
| ---- | ---- | ||
| ==== Creating Rollup Tables ==== | ==== Creating Rollup Tables ==== | ||
| - | A rollup table is quite easy to create. The rollup tables are first created in the Omnidex Environment File, complete with the SQL statement that represents the rollup data. Then the UPDATE ROLLUPS command is issued in ODXSQL to populate the rollup tables. Here is a simple example of creating a rollup that provides counts of people based on geographic regions: | + | A rollup table is quite easy to create. The rollup tables are first created in the Omnidex Environment File, complete with the SQL statement that represents the rollup data. Then the UPDATE ROLLUPS statement is issued in ODXSQL to populate the rollup tables. Here is a simple example of creating a rollup that provides counts of people based on geographic regions: |
| - | <code> | + | <code sql> |
| create table "LIST_GEO" | create table "LIST_GEO" | ||
| type ROLLUP | type ROLLUP | ||
| - | physical "dat\list.geo" | + | physical "dat/list.geo" |
| as "select COUNTRY, REGION, STATE, COUNTY, CITY, ZIP, MSA_CSA, PMSA, | as "select COUNTRY, REGION, STATE, COUNTY, CITY, ZIP, MSA_CSA, PMSA, | ||
| count(*) NUM_INDIVIDUALS | count(*) NUM_INDIVIDUALS | ||
| Line 23: | Line 25: | ||
| - | In ODXSQL, ODBC or JDBC, the following command will populate the rollup tables in the Omnidex Environment: | + | In ODXSQL, ODBC or JDBC, the following statement will populate the rollup tables in the Omnidex Environment: |
| update rollups | update rollups | ||