InforShell
Trend View
Trend View

From spreadsheet link and access database
Auxiliary user generate SQL database query commands
to be specialized data analysis operations


Contents:
  • Database overview

  • SQL overview

  • Open or connect to the database

  • Specifies the number of tables and query data items

  • Specified data item query

  • Specify the data query results sorting criteria


  • Database overview

    More simply, in a database may include more than one number tables. At a table can include multiple data records. In a data record may include multiple data items, and each data item can be different data types, such as a string, date, number, etc. If the number of tables in each of the two data items have a value equal to two indicates that the number of records in the table have join relationships.

    Database has multiple purposes, such as:

  • Mass storage to retain data associated with each other, commonly used in daily business
  • apid positioning to add, modify, delete a record, commonly used in daily business
  • Conditions specified query, filter, sort and analyze data to make decisions
  • Database with different products, such as DB2, Oracle, SQL Server, Access, dBase, FoxPro and Paradox, etc. use the database are generally based on the project or business depending on the amount of data, such as less than 2G of data can be used when Access, dBase, FoxPro Paradox or otherwise should be used DB2, Oracle or SQL Server.

    Trend View supports a variety of users from the database system used to extract data and to view the spreadsheet approach.


    Back to Contents

    SQL overview

    SQL is IBM's relational database defined for the launch of the Structured Query Language. Using the SQLdatabase query command can be accessed from a different point of view the purpose of analyzing the data, for example, the number of tables in the query operation can be:

  • Select a database from one or a few numbers to access the data table
  • Number specified in the table in a one or a few data items as the access target
  • Data entry for a specified value should be "=", "<", ">" and so the condition
  • Using the AND, OR multiple query keywords such claims
  • Will be held in two numbers specify the data items in the table to achieve a value equal to number two table join queries
  • On the number of data items specified in the table according to a up / down sort criteria to achieve the results of many records to sort the list in a spreadsheet
  • Trend View provides a series of dialogues board, list:

  • A number included in the database table name
  • Number of data items name included in the table
  • SQL Keywords

  • Users can simply click on the option to generate SQL database query command and run directly.


    Open or connect to the database

    Usually less than 2G of data management for small databases such as Access, dBase, FoxPro and Paradox is the use of a single disk file, while medium-sized DB2, Oracle, SQL Server database administrator is generally run on a dedicated monitor and computer platforms.

    Trend View provides two ways to access the database:

  • For a small database system, due to adopt a single disk file Trend View allows users to open files in a similar way from the local disk or local network to specify the target database file subdirectory to do data access.
  • System for medium to large database systems, users need to first by the database system administrator for you to create a "Data Source" to specify the database management system, network paths, operating system and a series of parameters and Trend View allows users to connect to the database specify the target data source access database to do data access.
  • Back to Contents

    Figure 1: Open or connect to the database menu


    Specifies the number of tables and query data items

    In the Trend View, when a user opens a database specified in the pop-up dialogue on the board first user as follows:

    Step 1 in the "From data table" list
    using the mouse to specify a target table name, then the number columns of table included will appear in:

  • "Select columns" list

  • Step 2 In the "Select columns" list
    using the mouse with Ctrl or Shift key to specify one or more target data item name, and click "Select" button. Then the number of tables and selected data item name also appears on:

  • "Selected columns" list
  • "SQL statment edit box"

  • Repeat customers such as 1, 2, two steps, receive a query multiple tables and data items of SQL commands.

    In the "Selected columns" have been selected using the mouse to specify a target data item, click "Remove" button available from the SQL command to clear the data item.

    Back to Contents


    Figure 2: specify the target number of tables and data entry dialogue board

  • Click "Finish" button after the recording in the "SQL statment edit" in the command will be executed immediately
  • Click "Next" button will generate a SQL query into the command dialogue board
  • Click "Cancel" button will exit the database queries



  • Specified data item query

    In the Trend View, when the user opens the database specified after the second dialogue in the pop-up user operation panel as follows:

    Step 1 In the "Specify search condition | SQL keyword" list of options:
    a) The claims specified when the first query

  • "WHERE" or "WHERE NOT"

  • Note: in SQL query prefix declared necessary by the "WHERE" or "WHERE NOT" keyword.
    b) the claim that the conditions specified follow-up multiple queries
  • "OR", "OR NOT"
  • "AND", "AND NOT"

  • Note: multiple queries in SQL conditions must claim by "OR", "OR NOT", "AND" or "AND NOT" keywords separated.

    Step 2 In the "Column" option to specify the list you prepared to give the query data entry

    Step 3 In the "Operator" in the list of options you need to specify the comparison operator, such as:

  • =, !=, <>, <, >, <=, =>
  • "LIKE" (data records are part of the string query = substring)
  • "BETWEEN" (between the two values)
  • "IN" (in a domain)
  • Step 4 In the "Condition" option declares the list you need to query such as:

  • In the edit bar, type: string, number or date
  • Another option in the list specified in the table a number of data items

  • Note: The number of the conditions would enable the two inter-related table records in the query results.

    Back to Contents


    Figure 3: the specified data item query dialogue board

    Step 5 Click "Done" button. Then the current SQL query will also appear in:

  • "Specified search condition"
  • "SQL statment edit box"

  • Repeat steps 1b to 5 more query terms to generate SQL commands.



    Specify the data query results sorting criteria

    In the Trend View , when the user opens the database specified in the pop-up board in the third dialogue users follow these steps:

    Step 1 In the "Specify display order (ORDER BY Column)" option in the first list you prepared to give the sort criteria specified data items

    Step 2 In the "Specify display order (ORDER BY Column)" list of options specified in Section 2 you are ready to give the sort criteria:

  • "ASC" list in ascending order
  • "DESC" list in descending order
  • Step 3 Click "Done" button. Then the current SQL sort criteria will also appear in:

  • "Specified display order (ORDER BY Column)"
  • "SQL statment edit box"

  • Note: SQL declared sort criteria required by the prefix "ORDER BY" keyword. Involved in sorting between the required number of data items separated by commas.

    Repeat steps 1 to 3 more sort criteria can be generated SQL commands.

    Back to Contents


    Figure 4: Specify the data query results sorting criteria Dialogue board