How do I retrieve external data via Statistica Query?
Statistica Query is used to easily access data from a wide variety of databases (including many large system databases such as Oracle, Sybase, etc.) using OLE DB conventions. The steps necessary to retrieve external data via Statistica Query are outlined below:
- Select Create Query from the Data - Get External Data menu (or from the File - Get External Data menu) to display the Database Connection dialog box, which is used to select a predefined database connection (the provider, data source location, and advanced settings of the server or directory on which the data resides).
- After you select a database connection and click the OK button on the Database Connection dialog box, you now have access to Statistica Query in which you can specify the desired tables, fields, joins, criteria, etc. (via the Table, Join, and Criteria menus) to be included in the query.
- Once you have specified the query, select Return Data to Statistica from the File menu.
- The Returning External Data to Spreadsheet dialog box is then displayed, which is used to specify the name of the query, where you want Statistica Query to put the data that the query returns, and additional options.
See Example - Querying a database using ODBC and Example - Querying a database using ODE DB for step-by-step examples.
Note: Connecting to external databases for streaming. The Get External Data option executes a user-defined query and copies the resulting data to your local computer. In other words, all data retrieved by the query is copied into a Statistica data file, and stored locally. Alternatively, you can connect to external databases and retrieve particular sets of data via query without the need to create a local copy of the data. Specifically, in the Create New Document dialog box, select the Streaming DB Connector tab to create a connection to a database that will look to Statistica as if it were a regular data file. In other words, when you use the streaming database connector options, the program does not first copy and store all data returned by the query on your local computer and then begin the analyses, but rather, the computer processes the database in place, only fetching the information from the database when it is needed for computations. Hence, streaming database connections are particularly useful and efficient when processing extremely large data sets (retrieved by a query from an external database), and they are commonly used in Data Mining applications. See also Streaming Database Connector Technology for additional details.