The following Access example builds a query that returns the number of defects found per date using the Seapine ODBC driver.
Connecting to a data source
- Start Microsoft Access and open a Blank Access database.
- Enter a database name and click Create.
- Choose File > Get External Data > Link Tables.
By linking tables you get updated data and the ability to use the Seapine ODBC driver. As data is entered into TestTrack, it is automatically updated in the Access database.
- Select ODBC Databases from the Files of Type pop-up menu.
- Click the Machine Data Source tab.
- Select the data source of the TestTrack project you want to link to.
- Click Select All and click OK. All the tables are linked to the project that was configured in the data source.
Creating a query
- Click the Queries button in the Object group.
- Click New.
- Select the method you want to use to create the new query and click OK.
This example uses Design View, SQL method. You do not have to use SQL.
- Without adding tables or queries, click Close in the Show Table dialog box.
- Click the SQL button on the Query Design toolbar and select SQL view.
- Enter the following SQL query to return the number of issues/defects found per date.
SELECT Count (*) AS Count, rb.datefound AS DateFound
FROM defects AS d, reportby AS rb
GROUP BY rb.DATEFOUND;
- Click Run on the toolbar to run the query.
- Click Close. You are prompted to save the query design.
- Click Yes to save the query design or click No if you do not want to save the query.
Note: If you want to edit the SQL query, on the View menu select SQL View.