Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following example shows how to extract student names and contact details from the Synergetic database directly using Microsoft Query.
Also, see:

...

  1. Start Microsoft Excel.
  2. Select:
    • Data > From Other Sources > From Microsoft Query (Microsoft Excel 2010)
    • Data > Import External Data > New Database Query (Microsoft Excel 2007)
    • Data > Import External Data > New Database Query (Microsoft Excel 2003)
    • Data > Get External Data > Create New Query (Microsoft Excel 97).

...


...

  1. Image Modified
    The Choose Data Source window is displayed.
    Image Modified
  2. Select the Synergetic database you plan to use. That is:
    • SynergyOne for mostly non-financial data
    • SynergyOneFinance for finance data.
  3. Clear the Use the Query Wizard to create/edit queries field.
    Image Modified
  4. Click Image Modified .
    The SQL Server Login window is displayed.
    Image Modified
  5. Type in your username and password.
    Note: This is your usual Synergetic username and password.
  6. Click Image Modified .
    The Add Tables window is displayed.
    Image Modified
  7. Scroll down the list of tables until you get to the Views. These all start with a small v.

...


...

  1. Image Modified
    Tip: Press v on the keyboard to position at the first view. 
    Note: If you only need the views to be displayed,

...

  1. click Image Modified and clear all but the Views field. Also, if you are using SQL 2005 you can limit the number of entries displayed by selecting dbo from the Owner drop-down list.
  2. Locate and select the required view.

...

  1. Image Added 
  2. Click .
    The table is added to the Microsoft Query window.

...


  1. Image Modified
  2. Repeat steps 9 and 10 until you have finished adding tables.

    Tip:
    To add another table later, select Table > Add Tables. You may need to select a different Database, if data from the Finance database is required.

    Note:
    In this example, we are only using views that have already been created by Synergetic Management Systems. If you are using multiple tables then joins need to be made between them. Contact Synergetic Management Systems for more information.If you want to remove a table, click on it then press Delete on your keyboard.
  3. Click Image Modified .
  4. Select Criteria > Add Criteria….
    The Add Criteria window is displayed.

...

  1. Image Modified
  2. Update the criteria fields.

...

  1. Image Modified

    Note:
    We recommend using CurrentSemesterOnlyFlag = 1 rather than FileYear and FileSemester selections.

    Note:
     If you select a value from the Field drop-down list, you can choose from any field in the table you have added. In the wizard you can only choose from the fields that you add from the table.

    Tip:

...

  1. Click Image Modified to display all values available for this field. 
  2. Click .
    The criteria is added to the query window.

...


...

  1. Image Modified 
  2. Select either the:

...


...

  1. Image Modified
    • And option, if the required data set is the result of combining both selection criteria. The records must include BOTH criteria to be selected.

...


  1. Image Modified
    • Or option, if the records in the required data set contain EITHER one of the selection criteria.

...


  1. Image Modified

  2. Repeat steps 14 through 16 until there are no more criteria to add.
  3. Click Image Modified .
  4. Add fields to the data set. You can:
    • Double click the field from the table window.

...

  1. Image Modified
    • Click and drag the field from the above window down to the grid to the column position where you want to place it.
    • Click the drop-down list on a blank column heading to display a list of all fields, then select the field you want.

...


  1. Image Modified
    • Click Records > Add Column, then select the field you want and give it a heading name. Heading names of other fields can be changed by double clicking on the heading (grey area).
    The field (column) is added to your data set.

...


  1. Image Modified
    Note: To remove a field, select the column heading as shown in the example above then press the Delete key on your keyboard. 
  2. Select Records > Sort.
    The Sort window is displayed.

...


...

  1. Image Modified
  2. Select a field to sort on by selecting:
    • the Column drop-down list
    • either Ascending or Descending.Click Anchor
  3. O_1211O_1211Click .
    The sort criteria is added to the Sort window.
  4. Repeat steps 21 and 22 until there are no more sort selections.

...

  1. Image Modified
    Note: The sort selections must already have been added to your query already. 
  2. Review the data in the grid area.

...


...

  1. Image Modified
    Note: You can adjust the height of the rows and the width of the columns so that you can view the information more fully. This is done in the same manner as in Microsoft Excel by dragging the column and row

...

  1. dividers Image Modified.
  2. Select File > Return data to Microsoft Excel.

...

  1. Image Added 
  2. Switch back to Microsoft Excel.
    The Import Data window is displayed.

...

  1. Image Modified
  2. Select the starting position on the spreadsheet.
  3. Click Image Modified .
    The data is retrieved and placed in the spreadsheet.

...


  1. Image Modified
  2. Save the spreadsheet.

Tip: Select Data > Import External Data > Data Range (Microsoft Excel 2003) to edit additional query settings. AnchorO_17858O_17858 Image Modified