home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 26 / CD_ASCQ_26_1295.iso / vrac / infotk11.zip / TUTORIAL.TXT < prev    next >
Text File  |  1995-08-09  |  11KB  |  217 lines

  1. Infothek 
  2.  
  3. Copyright   1995 Informatik Inc.
  4. All Rights Reserved.
  5. Infothek is a trademark of Informatik Inc.
  6.  
  7. info@informatik.com
  8. 76534.1166@compuserve.com
  9.  
  10.  
  11. T U T O R I A L
  12.  
  13. Last updated: 08-02-95
  14.  
  15. THIS IS A FAIRLY COMPREHENSIVE SYSTEM WITH MANY FEATURES AND CONTROLS.  PLEASE FEEL 
  16. FREE TO CALL INFORMATIK INC FOR HELP, EVEN IF YOU ARE NOT YET REGISTERED.  
  17. YOU CAN ONLY EVALUATE THE SYSTEM IF YOU KNOW HOW TO USE IT.
  18.  
  19.  
  20.  
  21. CREATE  DATABASE
  22.  
  23. *********************************************************************
  24. The system includes a simple address database/table as a 'sample'.  
  25. If you don not want to create a new database at this time, ignore 
  26. this section and go to the POSTING ENTRIES or QUERIES section below.
  27. *********************************************************************
  28.  
  29. 1.   Start Infothek by clicking the "i' icon in the Program Manager.  
  30. From the blank Infothek main screen (no windows open), choose 
  31. Design Database from the Database menu.  The Database Selection 
  32. window is displayed. 
  33.  
  34. (Alternatively, you can open the Database Administration system directly 
  35. from the Program Manager by clicking on the 'hammer' icon.)
  36.  
  37. The Database Administration is a separate program, linked to Docuthek.  If, for security reasons,
  38. you want to make the Database Administration inaccessible to Docuthek users, move the
  39. Database.exe and Database.hlp files to another directory.
  40.  
  41. 2.   We will now create a brand new database.  Therefore, we shall NOT select an existing
  42. database from any listed databases .  Instead please select Create New Database from the Options
  43. menu.
  44.  
  45. 3.   In the prompt box, type the full path and name of the new database, e.g. C:\MYDIR\MYDB
  46. and choose OK.  A second prompt for the table name appears.
  47.  
  48. 4.   In the prompt box, type the name of the table.  If at all possible, you should avoid spaces in
  49. the table name.  Choose OK.  The Database Design window is now displayed.
  50.  
  51. 5.   Now you must specify all the fields for the table.  The field specification consists of a field
  52. name, a data type (such as number, text, date, etc.) and if the field is an text type, then the size of
  53. the field.
  54.  
  55. Click the first cell in the grid box (Field, first column, first blank row).   In the box with the
  56. blinking insertion point, type the name of the first field.  The field name should not have spaces, if
  57. possible.
  58.  
  59. Click the second cell in the same row (Type).  A list of data types is displayed.  Select the 'Text'
  60. item, assuming you want the field to be alpha-numeric.
  61.  
  62. Since this is a 'text' data type. we must specify the length of the field.  Click the third column of
  63. the same row (Size) and in the input box type 20 (assuming we want the field to accommodate up
  64. to 20 characters.).  Numeric fields do not need a field size.
  65.  
  66. Repeat the above steps for all the fields in the table.  
  67.  
  68. 6.  Review the entries.  If everything is correct, press the Create button.  Please be aware that
  69. fields cannot be removed from a table once the table is created.  To remove a field, you will need
  70. to delete the table and rebuild it.
  71.  
  72. 7.   The next prompt is for our international users.  The database needs to know what language to
  73. use when sorting the data.  If your language is English, French, German, Italian, choose OK.  If
  74. you want to specify another language, press Cancel and select the language from a list of available
  75. languages. 
  76.  
  77. 8.   The database is now being build.
  78.  
  79. 9.   It is advisable to create indexes for the table.  Indexes can improve the performance of the
  80. database significantly.  To create an index, select Create Index from the Options menu.
  81.  
  82. In the Index Name field, type the name of the index (any name up to 8 characters, no spaces). 
  83. From the Field List select the first index field and specify the sorting mode by pressing the
  84. Ascending or Descending button.  Select other fields that are part of the index (optional).  Specify
  85. 'Primary' and 'Unique' if appropriate.   Review the index data displayed in the Index Definition
  86. box, and if correct, press the Create button.  If you have several indexes for the table, repeat this
  87. process, giving each index a different name.
  88.  
  89. You need to understand the meaning of the 'primary' and 'unique' flags.  Each table can have one
  90. primary key; this is the main sorting key.  If you specify an index to be unique, the system will
  91. ensure that duplicate values cannot be posted.  Primary indexes are 'unique' by definition. 
  92.  
  93. 11.   You should now review the newly created database.  From the Options menu, choose View
  94. Database Structure.  The detail of the database is displayed.  To print the information, press the
  95. Print button. 
  96.  
  97. 10.   Additional tables and fields can be added to existing databases.  To do so, you must first
  98. select the database (and table, if it exists) from the lists on he Database Selection screen.  Then,
  99. from the Options menu, select Add New Table or Add Fields.
  100.  
  101. 11.  The Database Administration allows you to restructure the database, to repair and compact
  102. fragmentated databases.  Use Database Administration also to import ASCII files,  to make global
  103. adjustments, to delete tables and indexes.  As indicated above, individual fields cannot be deleted
  104. from tables.  If a field is redundant, you should create a new table and transfer the date from the
  105. old table to the new table with the Restructuring function.  Databases can be deleted only with the
  106. File Manager.
  107.  
  108. 12.   The Database is now created, and we can start to post our entries.
  109.  
  110.  
  111. POSTING ENTRIES
  112. *******************************************************************************************
  113.  
  114. 1.   In the Program Manager, click on the Infothek icon and start up Infothek.  
  115.  
  116. 2.   Click the Data Edit button (pencil) in the toolbar.  The Data Edit screen is displayed.  If the
  117. fields are not specified, or if the fields represent the wrong database,  click the Database Selection
  118. button (filing cabinet) in the toolbar or choose Database Selection from the pull-down menu.  In
  119. the Database Selection window, specify the drive, the directory, the database and the table.  
  120.  
  121. 3.   Press the Clear button (cross-out) to ensure that all fields are cleared.  Complete the fields. 
  122.  
  123. To move to the next field, simply press Enter, or press the down-arrow or the tab key.  To return
  124. to the prior field, press the u-arrow or press Shift-Tab.
  125.  
  126. 4.   To clear the screen, press the Clear button.  If you are editing an existing record and you want
  127. to restore the data, choose Restore Record from the File menu.
  128.  
  129. 5.   To confirm the entry, press the Confirm button (checkmark), or choose Update Record from
  130. the File menu.  The screen is now ready for the next entry.
  131.  
  132. 6.   To return to another record, press the left or right arrow button, or choose the appropriate
  133. function in the File menu.  
  134.  
  135. To search for a specific record, make the field that you want to search active and choose the
  136. Search menu.   Enter the search characters and press the Search button.  All matching records are
  137. lined up and you can view them one at the time with the left and right arrow buttons, or use the
  138. appropriate function in the File menu.  Make the necessary changes and press the Confirm button.
  139.  
  140. 7.  To delete the currently active record, choose Delete Record from the File menu.
  141.  
  142. 8.   Make several entries so that we can run a meaningful search afterwards.
  143.  
  144.  
  145. QUERIES
  146. ********************************************************************
  147.  
  148. Infothek has a powerful (SQL-based) query engine.  This tutorial will introduce you to the basic
  149. query technique.  The query engine is very powerful and extensive.  This tutorial will show you
  150. just the 'tip of the iceberg'.
  151.  
  152. 1.  In the toolbar choose the Query button (question marks).   (If you want to query another
  153. database, choose the Database Selection button first.)  The Query window is displayed.
  154.  
  155. 2.   The first column of the Query builder list all available fields of the table.  All fields are marked
  156. with a blue checkmark.  Each marked field will be displayed as a separate column in the report. 
  157. You can remove a checkmark, by  clicking the appropriate Select cell  or by pressing the delete
  158. button while in the Select cell.  To add a checkmark, simply click the cell.
  159.  
  160. 3.   Most searches are done by filtering out selected data.  Click the field name that you want to
  161. filter.  In the yellow input box (with the blinking insertion point), enter the filter
  162. criteria.  For example, if you want to search for NY in the State field, type NY.  You can add
  163. filters to several fields.
  164.  
  165. 4.    Press the Query button (green spot).  The report shows all records that have 'NY' in the State
  166. field.
  167.  
  168. 5.    Press the Clear button (cross-out) to clear the screen and try another query.  
  169.  
  170. You have noticed that the system automatically defaults the Filter Operator.  If the data type of
  171. the field is 'text', the default Filter Operator is LIKE  and the system looks for a pattern.  If the
  172. data type of the field is 'numeric', the default Filter Operator is '=' and the system looks for an
  173. exact match.  For LIKE operators, the system always appends the '*' wildcard character. 
  174. Therefore, if you search for JOHN the system will retrieve all names starting with JOHN,
  175. including JOHN, JOHNSON, etc.  To remove the wildcard character, simply specify 'JOHN'.
  176.  
  177. As you have seen, the system features a large number of operators, such as >=, BETWEEN, IN,
  178. etc.  Furthermore, there are functions for aggregates, such as count, maximum, average, etc. 
  179. Finally, you can sort the display, reformat the values, and show totals at the bottom of the report. 
  180.  
  181. Sometimes, the reported data cannot all be shown on the screen.  Horizontal and vertical scroll
  182. bars allow you to view the hidden part of the report.  Also, if you click the right mouse button,
  183. the system displays a summary of the record.
  184.  
  185. The report can be printed, exported or copied to the Windows Clipboard.  There are two methods
  186. of printing:  horizontal and vertical presentation.  If you tag certain records with the checkmark,
  187. only the tagged items will be printed or exported.  To tag a record, simply double click on it.   To
  188. remove the tag, double-click it again, or press the Delete button.  Only the highlighted area is
  189. copied to the clipboard.
  190.  
  191. The system has many features that are beyond the scope of this tutorial.  Please read the help
  192. topics on the following features:
  193.  
  194. Refine          Query:  You can refine the query with additional filters and sort options.
  195. Crosstab:     You can 'pivot' the data and create a spreadsheet format.
  196. Graph:        The data can be displayed as a graph.  Many graph styles are available. 
  197.  
  198. You should also read up on re-sequencing the columns, re-sizing the column width, adding
  199. calculated columns, editing the SQL statement, purge, etc.
  200.  
  201. The SQL query supports most of the common functions.
  202.  
  203. Please review the INFOTHEK.FAQ file for examples of queries.  This file will be updated
  204. regularly based on user questions and it can be downloaded from CompuServe library and
  205. Informatik's homepage on the Internet.  If you cannot find the file, please send an email message
  206. to info@informatik.com or CompuServe 76534,1166.
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.