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 ...
    • Excel Querying Data Warehouse (Microsoft Query)

      It appears recent Office 365 Updates (2024) have impacted the menu choices for those of you who use the Microsoft Query to access State Data Warehouse. If you no longer see the Microsoft Query in the 'Other' query option, please see below for ...
    • 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) ...
    • Labor Plus Query

      Labor Plus is a link within the Online Accounting Journal query. If you have accesss to the online accounting journal, then you have access to see Labor Plus. For privacy reasons, State Data Warehouse hides many vendor names. If you were to add the ...
    • Data Warehouse - Data Dictionary

      Information Data Warehouse has published a Data Dictionary, sharing all of the State Datawarehouse Tables and Fields. Some tables have details and joins to use, where other less commonly used tables simply share the field names. This should be ...