QRG - Using Access to query data warehouse

QRG - Using Access to query data warehouse

(A copy of the QRG with screenshots can be found here:  https://drive.google.com/file/d/1jcxI35q1Rpz_gLCbOonQaWSgO51duFq7/view )

Introduction
Open Database Connectivity (ODBC) database. Similar to the state data warehouse, you’ll need to install an ODBC driver. All auditor laptops should have this driver installed already. Note: State data warehouse is also referred to as FINET data warehouse.

Instructions
  1. In the ribbon, select External Data. From the left side import & link, select New Data Source. From that drop-down, select From Other Sources, then from the secondary drop-down click ODBC Database.
  2. A window will pop-up entitled, Get External Data – ODBC Database. Select “Link to the data source . . .” (It is VERY IMPORTANT TO LINK instead of import).
  3. At the Select Data Source pop-up, select Machine Data Source, then StateDW.
  4. At the Logon pop-up enter a password to access the State Data Warehouse. Enter the password exactly as it is represented here: DW1234. 
  5. After successful logon, the Link Tables pop-up appears allowing you to select as many tables as you need for your query. If you don't want to enter credentials every time you run a query, check the box Save Password. Select the table or tables you want to import and press OK. Use the Ctrl key to select multiple tables, if desired.
  6. Before importing the tables, Access will ask you to select a Unique Record Identifier (URI) for each table. For our purposes, this is unnecessary—simply press OK or Cancel without making a selection.
  7. The tables that you selected should now appear on the left side of your Access window. Do not double click on that table. Attempting to display all of the records from a very large table may cause your computer to become unresponsive. 
  8. The main table that we work with in State Data Warehouse (also referred to as FINET Data Warehouse) is the Accounting Journal table. This table contains the most financial information of all the tables. This table contains a long list of fields that you can use to narrow your search. 
Note: Many of the fields within the Accounting Journal table are taken from other tables. For example, the Account_Type field in the Accounting Journal is taken from the Account Type table which actually provides a description of each account type.
Creating a query
  1. From the ribbon, select Create, then select Query Design.
  2. The Query Design Menu display will update, displaying query specific menu selections.
  3. Add Tables to your Query. On the right side of your screen the linked tables are displayed. Ensure you are looking at the tables listed under the ‘Links’ section. Select which tables, and click Add Selected Tables.
  4. Double click or click and drag the fields to be used for query. Once you add a field to your query, you can also specify a criterion or filter if you want. In the example below, we selected four fields: Amount,  Account_Type, Fiscal_Year, and Department_Unit. More fields could be added depending on what you decide to view.  (There is an example provided in the QRG document linked to this instruction
  5. Once you have selected the fields you desire and the criteria for those fields, the next thing to do is Run the Query.
  6. Review the query results to determine if it generated the desired results and save your query before exiting. Query results can be reviewed in Access, exported or copied and pasted into Excel, or imported into IDEA for further analysis or manipulation.
Helpful hints
  1. Oftentimes with FINET tables, the Amount field can be hard to read because of missing commas. The format for this field can be changed by selecting the Amount field in design view. Right click and select  properties. Select the "Format" drop-down box and change the format to either Currency or Standard.
          Using a cursor, selecting the Field name in the query, here we selected ‘Amount’ and then right-clicked.
      2. To see the Amount Total after you have run your query, from the home menu, locate the Records section of the menu, then click the Totals icon. This will add a Total Row to the bottom of your results. In the                column you wish to total, select the cell in the newly added Total Row, and from the drop down choose Sum to total the dollars.

    • Related Articles

    • QRG - Using Excel to query data warehouse

      (A copy of the QRG with screenshots can be found here: https://drive.google.com/file/d/1CzcUic3qykVURnFS1yrkN-roU5YvQzJv/view ) Introduction To access State Data Warehouse using excel or other tools, create a DTS helpdesk ticket, they need to install ...
    • ODBC Connection Error When Connecting to Data Warehouse via Microsoft Access or EXCEL

      Problem An error is received when trying to access. ODBC call failed  Specified driver could not be loaded due to system error 126: The specified module could not be found. (Adaptive Server Enterprise, C:\Sybase\DataAccess\ODBC\dll\sybdrvo.dll)(#160) ...
    • QRG - Accessing State VPN for FINET mobile

      (A copy of the QRG with screenshots can be found here: https://drive.google.com/file/d/1dwws2jXUu2UJp3Xr9bQ86PWqOOnE5lhz/view ) Introduction To access the FINET Mobile App on your State-issued device, you’ll first need to connect to the State VPN ...
    • QRG - Table Export All Available Columns

      Description and Purpose When working with pages that have grids, sometimes it is easier to export the data to a spreadsheet which allows easy manipulation of the data to get the desired results. When selecting Export All. FINET allows you to either ...
    • QRG - Advanced Grid

      (A copy of the QRG with screenshots can be found here: https://drive.google.com/file/d/116oOJ-4_38GP4BXP2MtlW9X2BqpIjRZb/view ) Introduction The Advanced Grid allows you to change the view of the results from a Transaction Catalog search for more ...