This shows you the differences between two versions of the page.
integration:rdbms:queries [2011/03/14 19:20] 127.0.0.1 external edit |
integration:rdbms:queries [2016/06/28 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | ||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | |||
- | ====== Integration: Relational Databases ====== | ||
- | |||
- | [[integration:rdbms:home|Overview]] | | ||
- | [[integration:rdbms:servers|Servers]] | | ||
- | [[integration:rdbms:environments|Environments]] | | ||
- | **[[integration:rdbms:queries|Queries]]** | | ||
- | [[integration:rdbms:updates|Updates]] | | ||
- | [[integration:rdbms:creation|Generating Data Files]] | | ||
- | [[integration:rdbms:implementation|Implementation Guides]] | ||
- | |||
- | ---- | ||
- | ==== Querying Raw Data Files ==== | ||
- | |||
- | Omnidex allows applications to issue SQL statements against raw data files using standard ODBC and JDBC interfaces. Once a raw data file has been included in an Omnidex Environment File, it is treated like a standard table. Applications can relate with this data file as a standard table, just as though the table was resident in a relational database. | ||
- | |||
- | Applications can take advantage of the great breadth of the SQL language. Queries can filter rows using criteria, join tables, aggregate rows, order rows and process functions. | ||
- | |||
- | == Criteria == | ||
- | |||
- | Omnidex supports the complete suite of criteria options in the SQL language against raw data files. Omnidex indexing should be installed on criteria columns to achieve the best performance. | ||
- | |||
- | Delimited and fixed-length raw data files do not differentiate a NULL column as is done in a relational database. Omnidex will treat empty fields as NULL fields to compensate for this. For character-class datatypes, an IS NULL test will qualify any row containing an empty space in that column. For binary-class datatypes, an IS NULL test will qualify any row containing a zero in that column. | ||
- | |||
- | == Table Joins == | ||
- | |||
- | Omnidex supports standard table joins between raw data files, including inner joins, outer joins and cross joins. Since raw data files do not generally have native indexing capabilities like relational databases, it is important to install Omnidex indexing on the join columns. This will insure the best optimization of table joins. | ||
- | |||
- | == Aggregations == | ||
- | |||
- | Omnidex supports standard aggregations such as COUNT, SUM, AVG, MIN and MAX, both with and without the GROUP BY clause. Omnidex indexing should be installed to achieve the best performance. | ||
- | |||
- | Aggregations are generally appropriate for binary datatypes. For delimited files, be sure to declare numeric columns using binary datatypes to allow aggregations. Of course, binary datatypes can only be declared when the numeric data is consistent and valid across all rows. | ||
- | |||
- | == Ordering == | ||
- | |||
- | Omnidex supports ordering result sets using the ORDER BY clause. Omnidex indexing should be installed to achieve the best performance. | ||
- | |||
- | == Functions == | ||
- | |||
- | Omnidex allows a wide selection of [[dev:sql:functions:home|SQL Functions]] that can be used against raw data files. | ||
- | |||
- | Omnidex also allows [[admin:features:expressioncols|Expression-based Columns]] in a table declaration, which create a virtual column that returns the result of a SQL expression. | ||
- | |||
- | == Datatypes == | ||
- | |||
- | Raw data files can support retrieving data in a wide variety of datatypes. The can store character and binary data, and data can be further converted in SQL statements. Raw data files do not support VARCHAR and CLOB datatypes due to their reliance on length variables; however, CHARACTER and STRING datatypes may be used instead with greater convenience. | ||
- | |||
- | ==== ==== | ||
- | \\ | ||
- | |||
- | In general terms, applications should treat a raw data file just like any other relational database. Many companies transfer their data from relational databases to raw data files, and the only difference their applications notice is an increase in performance. | ||
- | |||
- | |||
- | ===== ===== | ||
- | |||
- | **[[integration:rdbms:environments|Prev]]** | | ||
- | **[[integration:rdbms:updates|Next]]** | ||
- | |||
- | ====== Additional Resources ====== | ||
- | |||
- | See also: | ||
- | |||
- | {{page>:integration:rdbms:see_also&nofooter&noeditbtn}} | ||
- | |||
- | {{page>:bottom_add&nofooter&noeditbtn}} |