home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Product / Product.zip / visquein.zip / FTB1OAT4.INF (.txt) < prev    next >
OS/2 Help File  |  1994-07-12  |  48KB  |  426 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Welcome ΓòÉΓòÉΓòÉ
  3.  
  4.  
  5. ΓòÉΓòÉΓòÉ <hidden> Dummy ΓòÉΓòÉΓòÉ
  6.  
  7.  
  8. ΓòÉΓòÉΓòÉ <hidden> Dummy ΓòÉΓòÉΓòÉ
  9.  
  10.                                  Welcome to the
  11.                                    Visualizer
  12.                                  Query Tutorial
  13.                        (C) Copyright IBM Corporation 1994
  14.  
  15. Double-click on the arrow to continue. 
  16.  
  17.  
  18. ΓòÉΓòÉΓòÉ 2. Using this Tutorial ΓòÉΓòÉΓòÉ
  19.  
  20.  Using this tutorial 
  21.  
  22. The Visualizer tutorial windows have been designed to occupy only 40 percent of 
  23. your screen. This is to allow you to run Visualizer at the same time as viewing 
  24. a tutorial. 
  25.  
  26. In this way you can perform the tutorial steps using the real product and not a 
  27. product simulation as in so many online tutorials. 
  28.  
  29. Before you start to read the lesson steps, it is recommended that you will: 
  30.  
  31. o Open the Visualizer folder 
  32. o Size the Visualizer window so that it fits neatly next to the tutorial window 
  33.  
  34. By performing the tutorial steps using the real Visualizer product, you will 
  35. familiarize yourself with the feel, functions, and features of the product. 
  36.  
  37. All the tutorials in the Visualizer product are structured in a similar way. If 
  38. you have not used a Visualizer tutorial before, double-click on any of the 
  39. following topics for further information: 
  40.  
  41. o Highlighted terms 
  42. o Lessons and steps 
  43. o Why 
  44. o Which lessons to follow 
  45.  
  46.  
  47. ΓòÉΓòÉΓòÉ <hidden> Lessons and Steps ΓòÉΓòÉΓòÉ
  48.  
  49.  Lessons and steps 
  50.  
  51. Visualizer tutorials are divided into lessons and each lesson is further 
  52. divided into steps. 
  53.  
  54. At the start of each lesson there is a lesson overview, followed by a list of 
  55. lesson steps. The lesson steps are hypertext links to the steps themselves. To 
  56. start the tutorial at the beginning, double-click on the first step. 
  57.  
  58. At the end of each lesson there is an overview which recaps on the concepts and 
  59. steps you should be familiar with. 
  60.  
  61.  
  62. ΓòÉΓòÉΓòÉ <hidden> Highlighted Terms ΓòÉΓòÉΓòÉ
  63.  
  64.  Highlighted terms 
  65.  
  66. If you see any words or phrases that are highlighted like this: hypertext you 
  67. can double-click on them to get more information. 
  68.  
  69. The information is displayed in a new window like this one. When you have 
  70. finished reading it, close the window in one of the following ways: 
  71.  
  72. o Press the Esc key on your keyboard 
  73. o Double-click on the System menu 
  74. o Select Close from the System menu 
  75.  
  76.  
  77. ΓòÉΓòÉΓòÉ <hidden> Why ΓòÉΓòÉΓòÉ
  78.  
  79.  Why 
  80.  
  81. At the start of each lesson you will see this: 
  82.  
  83. (Why?) 
  84.  
  85. Double-clicking on the word (Why?) will display further information about the 
  86. purpose of the lesson and help to explain how the lesson is related to the 
  87. lessons which precede and follow it. 
  88.  
  89.  
  90. ΓòÉΓòÉΓòÉ <hidden> Which Lessons to Follow ΓòÉΓòÉΓòÉ
  91.  
  92. Which lessons to follow 
  93.  
  94. If you are unfamiliar with Visualizer, we recommend that you work through each 
  95. lesson sequentially. 
  96.  
  97. To do this, when you have read the overview of each lesson, double-click on the 
  98. title of the first lesson. 
  99.  
  100. If you are familiar with some aspects of Visualizer, be selective about which 
  101. lessons you work through. Read all the lesson overviews before you select which 
  102. lessons you want to follow. 
  103.  
  104. To go on to other lessons, follow the navigational help that is given at the 
  105. end of each lesson. 
  106.  
  107.  
  108. ΓòÉΓòÉΓòÉ 3. Visualizer Query Lessons ΓòÉΓòÉΓòÉ
  109.  
  110.  Visualizer Query Lessons 
  111.  
  112. Use Visualizer Query to select, combine, and analyze information stored in an 
  113. SQL database, or in files using a number of common data formats. 
  114.  
  115. With Visualizer Query you can select just the information you need from your 
  116. data, without the need to understand SQL. 
  117.  
  118. The data that a query provides is called the result of the query. This data is 
  119. not stored in the query, but is retrieved from other data sources when you run 
  120. the query. You must run a query before you can look at its result. 
  121.  
  122. A query can be used as a source of data, just like a table, but as the query 
  123. does not hold the data, you cannot change the data itself. 
  124.  
  125. Lesson 1: Defining a query 
  126. In this lesson you will learn how to create a query that combines the data from 
  127. more than one data table. It also teaches you how to select rows and columns 
  128. for a query and how to save your work. 
  129.  
  130. This lesson takes 40 minutes to complete. 
  131.  
  132.  
  133. ΓòÉΓòÉΓòÉ 4. 1. Defining a Query ΓòÉΓòÉΓòÉ
  134.  
  135.  Defining a query 
  136.  
  137. In this lesson you will learn how to define a new query that combines data from 
  138. more than one table or view. You will also learn how to select specific rows 
  139. and columns for use in your query and how to save your work. 
  140.  
  141. (Why?...) 
  142.  
  143. Steps 
  144. 1. Create a copy of the Query template. 
  145. 2. Rename the query. 
  146. 3. Select the query's data sources. 
  147. 4. Link the data sources. 
  148. 5. Select rows of data. 
  149. 6. Select columns of data. 
  150. 7. View the query results. 
  151. 8. Save the changes then close the query. 
  152.  
  153.  
  154. ΓòÉΓòÉΓòÉ 4.1. 1.1 Copy the Template ΓòÉΓòÉΓòÉ
  155.  
  156. Open the Visualizer folder. 
  157.  
  158. The Visualizer folder contains the Shadows of Templates folder. 
  159.  
  160. Open the Shadows of Templates folder. 
  161.  
  162. The Shadows of Templates folder contains templates for all the Visualizer 
  163. objects. You can use these templates to create your own Visualizer objects. 
  164.  
  165. Drag the Visualizer Query template icon and drop it on the folder you want to 
  166. store the new query in. 
  167.  
  168. You have now created a new query in your target folder. 
  169.  
  170.  
  171. ΓòÉΓòÉΓòÉ 4.2. 1.2 Rename the Query ΓòÉΓòÉΓòÉ
  172.  
  173. Open the folder where your new query is stored. 
  174.  
  175. Hold down the Alt key. 
  176.  
  177. Select your new query. 
  178.  
  179. Release the Alt key. 
  180.  
  181. Overtype the title with one of your own. 
  182.  
  183. Select on an empty part of the folder to save your changes. 
  184.  
  185. You have now renamed your new query and saved the changes. 
  186.  
  187.  
  188. ΓòÉΓòÉΓòÉ 4.3. 1.3 Select data sources ΓòÉΓòÉΓòÉ
  189.  
  190.  You can select any of the following data sources to use in your query: 
  191.  
  192. o SQL tables 
  193.  
  194. o SQL views 
  195.  
  196. o Visualizer tables 
  197.  
  198. o Queries 
  199.  
  200. All SQL tables and views in a query must be associated with the same database 
  201. object. 
  202.  
  203. Double-click on your new query. 
  204.  
  205. Your new query is now open. 
  206.  
  207. If you can see the data icons for the sources you want, drag the icons one by 
  208. one and drop them onto your query. 
  209.  
  210. The data icons you have dragged onto your query are now used as data sources 
  211. for your query. You can now go on to the next lesson. 
  212.  
  213. Select  from the tool bar, if you cannot see the icons for the data sources you 
  214. want. 
  215.  
  216. You can also select the Query tool bar choices from the Query menus. 
  217.  
  218. The Select Tables and Queries window opens for you to select the data sources 
  219. for your query, and the Selected Tables and Queries window opens for you to see 
  220. which data sources are already selected for your query. 
  221.  
  222. In the Select Tables and Queries window describe the type (for example, SQL) 
  223. and the location of the data source you want to use, then identify the data 
  224. source by typing its name. For SQL database data sources, the location 
  225. comprises the database alias followed by a backslash (\) and a collection name. 
  226. The collection name is usually the user ID of the person who created the data 
  227. source. 
  228.  
  229. The data sources you have selected are shown in the Selected Tables and Queries 
  230. window. 
  231.  
  232. Select OK. 
  233.  
  234. The data sources you have selected are now the data sources for your query. 
  235. Their names are shown in the upper half of the Query main window. 
  236.  
  237.  
  238. ΓòÉΓòÉΓòÉ 4.4. 1.4 Link Data Sources ΓòÉΓòÉΓòÉ
  239.  
  240. To combine related data from more than one data source, the data sources for 
  241. your query must be linked. This is done by linking columns from one data source 
  242. to related columns from another data source. 
  243.  
  244. Links are shown by the  symbol in a link entry > < in the upper half of the 
  245. Query window. 
  246.  
  247. When you selected your data, Visualizer Query may have created links 
  248. automatically for your query. If there is already at least one link symbol () 
  249. in all of the link entries in the upper half of the Query window, go on to the 
  250. next lesson. Otherwise create a link between your data sources by following 
  251. these steps: 
  252.  
  253. Double-click on the link entry between the two data sources that you want to 
  254. link. 
  255.  
  256. The Link Settings window opens. 
  257.  
  258. Select the Auto join push button. 
  259.  
  260. Select OK. 
  261.  
  262. A link symbol () is placed in the upper half of the Query window showing that 
  263. a default link between your two selected data sources has been created. 
  264.  
  265. Repeat the above steps until all the link entries in the upper half of the 
  266. Query window contain a link symbol. 
  267.  
  268. Your data sources are now ready to be combined. 
  269.  
  270.  
  271. ΓòÉΓòÉΓòÉ 4.5. 1.5 Selecting rows ΓòÉΓòÉΓòÉ
  272.  
  273. Your query result can contain all the rows in the linked columns. If this is 
  274. what you want, you do not need to select specific rows. However, you may want 
  275. to use your query to select only those rows that fulfill a specified condition. 
  276. To select specific rows of data for your query, follow these steps: 
  277.  
  278. Select from the tool bar. 
  279.  
  280. The Select Rows window opens. 
  281.  
  282. In the Expression field, type in an expression that specifies the rows you want 
  283. to use in your query. The following example is for an SQL table. It selects 
  284. rows containing the values New York and Montreal from the Depot column: 
  285.  
  286. "Depot"='New York' OR "Depot"='Montreal'
  287.  
  288. The following example is for a Visualizer table: 
  289.  
  290. Depot="New York" OR Depot="Montreal"
  291.  
  292. If you are not familiar with the syntax for Visualizer expressions, select the 
  293. ... push button for help. 
  294.  
  295. Select OK. 
  296.  
  297. The Select rows window closes. 
  298.  
  299.  
  300. ΓòÉΓòÉΓòÉ 4.6. 1.6 Select columns ΓòÉΓòÉΓòÉ
  301.  
  302. Your query result can contain all the columns in the linked data sources. If 
  303. this is what you want, you do not need to select specific columns. However, you 
  304. may want to use your query to select only those columns that fulfill a 
  305. specified condition. To select specific columns of data for your query, follow 
  306. these steps: 
  307.  
  308. Select from the tool bar. 
  309.  
  310. The Select Columns window opens with all the columns selected. 
  311.  
  312. Deselect the columns you do not want in your query result. 
  313.  
  314. If you want to use only a few of all the available columns, it is quicker to 
  315. select the Deselect all push button and then select the columns you want to 
  316. use. 
  317.  
  318. Select OK. 
  319.  
  320. The Select Columns window closes and the columns you have chosen are used in 
  321. your query result. 
  322.  
  323.  
  324. ΓòÉΓòÉΓòÉ 4.7. 1.7 View the Results ΓòÉΓòÉΓòÉ
  325.  
  326. The data that a query provides is called the result of the query. This data is 
  327. not stored in the query, but is retrieved from the query's data sources when 
  328. you run the query. 
  329.  
  330. You must run a query before you can look at its results. 
  331.  
  332. Select from the tool bar. 
  333.  
  334. The result of the query is displayed in the browsing window. 
  335.  
  336. You can run a query when the query is closed. To do this: 
  337.  
  338.  1. Display the pop-up menu for the query icon. 
  339.  
  340.  2. Select the arrow to the right of the Open choice. 
  341.  
  342.  3. Select Run query. 
  343.  
  344. Select from the tool bar to view the result as a table. 
  345.  
  346. The query result for many rows and columns is displayed. 
  347.  
  348. Select from the tool bar to view the result as a form. 
  349.  
  350. The query result for a single item is displayed. 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 4.8. 1.8 Save and Close ΓòÉΓòÉΓòÉ
  354.  
  355. Select  from the tool bar. 
  356.  
  357. The changes you have just made to your query have been saved. 
  358.  
  359. Double-click on the small icon in the title bar. 
  360.  
  361. Your query is now closed. 
  362.  
  363.  
  364. ΓòÉΓòÉΓòÉ <hidden> Why Define a Query? ΓòÉΓòÉΓòÉ
  365.  
  366. On many occasions the data you need has to be taken from several sources, but 
  367. you need to present it and use it as a single data source. Visualizer Query is 
  368. an efficient and easy way of combining data from several data sources. You can 
  369. use Visualizer Query to combine complex data sources into a single source that 
  370. will answer your current data needs. 
  371.  
  372. This lesson teaches you how to create a simple query and introduces you to some 
  373. important query concepts. When you have completed this lesson, you can build on 
  374. your knowledge to create more advanced queries using the techniques available 
  375. with Visualizer Query. 
  376.  
  377.  
  378. ΓòÉΓòÉΓòÉ 5. Tutorial Review ΓòÉΓòÉΓòÉ
  379.  
  380.  Reviewing the Query Tutorial 
  381.  
  382. You should now feel confident about creating a Visualizer query. You should 
  383. have an understanding of how to: 
  384.  
  385. o Open a Visualizer query 
  386.  
  387. o Rename a query 
  388.  
  389. o Select and link query data sources 
  390.  
  391. o Select rows and columns of data 
  392.  
  393. o Save a query 
  394.  
  395. o Close the query window 
  396.  
  397. Understand what you did? 
  398. If you feel you did not understand all you did, consider going through the 
  399. lessons again. Next time, double-click on all of the (Why?...) fields for 
  400. lesson explanations and on all of the highlighted text fields for conceptual 
  401. information. 
  402.  
  403. For more information 
  404. You can find conceptual, control and task information in the Visualizer online 
  405. help and in Visualizer Query for OS/2: Using, SH45-5089-00. An online version 
  406. of this book is also provided in your Manuals folder. 
  407.  
  408. What to do now 
  409. You have now completed the Visualizer Query tutorial. 
  410.  
  411. If you would like to repeat the tutorial, double-click here on the back-page 
  412. button: Alternatively, close the tutorial window by double-clicking on the 
  413. small icon in the title bar. 
  414.  
  415.  
  416. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  417.  
  418. This is a footnote window. The highlighted terms in this tutorial are usually 
  419. displayed in larger windows. Press the escape key on your keyboard to close the 
  420. footnote. 
  421.  
  422.  
  423. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  424.  
  425. This is a footnote window. Why information is usually displayed in larger 
  426. windows.