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

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Welcome ΓòÉΓòÉΓòÉ
  3.  
  4.  
  5. ΓòÉΓòÉΓòÉ <hidden> Dummy ΓòÉΓòÉΓòÉ
  6.  
  7.  
  8. ΓòÉΓòÉΓòÉ <hidden> Dummy ΓòÉΓòÉΓòÉ
  9.  
  10.                                  Welcome to the
  11.                                    Visualizer
  12.                               SQL Database 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 SQL Database Lessons ΓòÉΓòÉΓòÉ
  109.  
  110.  Visualizer SQL Database Lessons 
  111.  
  112. Use the Visualizer SQL Database object to access databases that contain the 
  113. tables and views you want to work with. You access the database by associating 
  114. it with an SQL database object. You can then open a view of the object and work 
  115. with the SQL tables and SQL views in the database. 
  116.  
  117. Using the Visualizer SQL Database object, you can retrieve data from local 
  118. databases (on your workstation with DB2/2 installed) or remote databases (on 
  119. another workstation or host system) provided that a suitable database manager 
  120. is installed. 
  121.  
  122. After associating a database with an SQL database object, you can include 
  123. specific tables and views in the object, run SQL statements, and access the SQL 
  124. database from an application. 
  125.  
  126. Lesson 1: Associating an SQL database object with a database. 
  127. Before you can use Visualizer to access SQL tables and SQL views, you must 
  128. access the database they are stored in. In this lesson you will learn how to 
  129. access a database by associating an SQL database object with it. 
  130.  
  131. This lesson takes 15 minutes to complete. 
  132.  
  133. Lesson 2: Including tables and views in an SQL database object. 
  134. When you first open an SQL database object after associating it with a 
  135. database, the object contains only the existing tables and views you currently 
  136. own under your user ID. In this lesson you will learn how to change what is 
  137. included in the SQL database object. 
  138.  
  139. This lesson takes 20 minutes to complete. 
  140.  
  141.  
  142. ΓòÉΓòÉΓòÉ 4. 1. Associating a Database ΓòÉΓòÉΓòÉ
  143.  
  144.  Associating a database 
  145.  
  146. Before you can access the SQL tables and SQL views you want to work with, you 
  147. must access the database they are contained within. 
  148.  
  149. To do this you must associate a Visualizer SQL database object to the database. 
  150.  
  151. In this lesson you will learn how to associate a database with a Visualizer SQL 
  152. database object. 
  153.  
  154. (Why?...) 
  155.  
  156. Steps 
  157. 1. Create a copy of the SQL database object. 
  158. 2. Rename your new SQL database object. 
  159. 3. Open your new object's Settings notebook. 
  160. 4. Select the database you want to use. 
  161. 5. Save the changes then close the object. 
  162.  
  163.  
  164. ΓòÉΓòÉΓòÉ 4.1. 1.1 Copy the Template ΓòÉΓòÉΓòÉ
  165.  
  166. Open the Visualizer folder. 
  167.  
  168. The Visualizer folder contains the Shadows of Templates folder. 
  169.  
  170. Open the Shadows of Templates folder. 
  171.  
  172. The Shadows of Templates folder contains templates for all the Visualizer 
  173. objects. You can use these templates to create your own Visualizer objects. 
  174.  
  175. Drag the Visualizer SQL Database template icon and drop it on the folder you 
  176. want to store the new object in. 
  177.  
  178. You have now created a new SQL database object in your target folder. 
  179.  
  180.  
  181. ΓòÉΓòÉΓòÉ 4.2. 1.2 Rename the SQL Database object ΓòÉΓòÉΓòÉ
  182.  
  183. This is an optional step. The SQL database object uses an alias as the title, 
  184. but you can rename the object yourself if you wish. 
  185.  
  186. Open the folder where your new SQL database object is stored. 
  187.  
  188. Hold down the Alt key. 
  189.  
  190. Select your new SQL database object. 
  191.  
  192. Release the Alt key. 
  193.  
  194. Overtype the title with one of your own. 
  195.  
  196. Select on an empty part of the folder to save your changes. 
  197.  
  198. You have now renamed your new SQL database object and saved the changes. 
  199.  
  200.  
  201. ΓòÉΓòÉΓòÉ 4.3. 1.3 Open the Settings Notebook. ΓòÉΓòÉΓòÉ
  202.  
  203. To associate a database with your new SQL database object you use the SQL 
  204. Database object's Settings notebook. In this step you will learn how to open 
  205. the Settings notebook. If you already know how to do this, open the Settings 
  206. notebook for your new SQL database object and go on to the next step. 
  207.  
  208. Select your new SQL database object. 
  209.  
  210. The SQL database object's pop-up menu is displayed. 
  211.  
  212. Select on the arrow to the right of Open. 
  213.  
  214. Another menu is displayed for the Open choice. 
  215.  
  216. Select Settings. 
  217.  
  218. The Settings notebook for your new SQL database object is opened. 
  219.  
  220.  
  221. ΓòÉΓòÉΓòÉ 4.4. 1.4 Select the Database ΓòÉΓòÉΓòÉ
  222.  
  223. Select the Database tab from the Settings notebook. 
  224.  
  225. The notebook is opened on the Database page. 
  226.  
  227. The Database list contains a list of all the databases that you have access to. 
  228.  
  229. From the Database list select the name of the database you want to associate 
  230. with your SQL database object. 
  231.  
  232. Select the Apply push button. 
  233.  
  234.  
  235. ΓòÉΓòÉΓòÉ 4.5. 1.5 Save and Close ΓòÉΓòÉΓòÉ
  236.  
  237. Close your SQL database object's Settings notebook. 
  238.  
  239. The changes you have made to the settings of your SQL database object are saved 
  240. and the Settings notebook closes. 
  241.  
  242. The database you have chosen will remain associated with your SQL database 
  243. object until you delete the SQL database object. 
  244.  
  245. You will see that your new SQL database object now contains the SQL tables and 
  246. SQL views that are stored in the associated database. 
  247.  
  248. Double-click on one of the SQL tables or SQL views to see what it contains. 
  249.  
  250.  
  251. ΓòÉΓòÉΓòÉ <hidden> Why Change a Table? ΓòÉΓòÉΓòÉ
  252.  
  253. Visualizer offers you a wealth of function and capability to help you quickly 
  254. and easily access your data. It has an easy-to-use graphical interface which 
  255. means that you can improve the way you do business without needing an in depth 
  256. knowledge of databases or SQL. 
  257.  
  258. However, before you can use Visualizer to access SQL tables and SQL views, you 
  259. must access the database they are stored in. To access the database you must 
  260. associate the database with a Visualizer SQL database object. 
  261.  
  262. This lesson shows you how to associate a database with a Visualizer SQL 
  263. database object, after which your data and all the capabilities of Visualizer, 
  264. will be at your fingertips 
  265.  
  266.  
  267. ΓòÉΓòÉΓòÉ 5. 2. Including Tables and Views ΓòÉΓòÉΓòÉ
  268.  
  269.  Including tables and views 
  270.  
  271. In this lesson you will learn how to include Visualizer SQL tables and SQL 
  272. views in your Visualizer SQL database. 
  273.  
  274. (Why?...) 
  275.  
  276. Steps 
  277. 1. Open the object's Settings notebook. 
  278. 2. Change the Include page. 
  279. 3. Save and apply the changes. 
  280.  
  281.  
  282. ΓòÉΓòÉΓòÉ 5.1. 2.1 Open the Settings notebook ΓòÉΓòÉΓòÉ
  283.  
  284. Open the Settings notebook for your SQL database object. 
  285.  
  286. The steps involved in opening the Settings notebook are described in detail in 
  287. lesson 1. If you are not sure how to open the Settings notebook for an object, 
  288. go back to lesson 1 and follow the steps that are detailed there. 
  289.  
  290.  
  291. ΓòÉΓòÉΓòÉ 5.2. 2.2 Change the Include Page ΓòÉΓòÉΓòÉ
  292.  
  293. Select the Include tab on the Settings notebook. 
  294.  
  295. The Settings notebook opens at the Include page. 
  296.  
  297. In the Collection field type the collection name of what you want to include. 
  298.  
  299. The collection name could be the user ID of the owner of the tables and views, 
  300. or some other qualifier depending on the database you are accessing. For 
  301. example, you may have a collection of tables and views called Salaries which 
  302. includes all the tables and views for the salaries department, or another 
  303. called Market research which includes all the tables and views for the market 
  304. research department. 
  305.  
  306. You can use the * wildcard to include all collection names. 
  307.  
  308. If you leave the Collection field blank, the current user ID will be used. 
  309.  
  310. In the Name field type the names of the tables and views you want to include. 
  311.  
  312. Again, you can use the * wildcard to include all tables and views. 
  313.  
  314. From the Type list select SQL Table, or SQL View, or both of these. 
  315.  
  316.  
  317. ΓòÉΓòÉΓòÉ 5.3. 2.3 Save and Close ΓòÉΓòÉΓòÉ
  318.  
  319. The tables and views you have named will be included automatically in your SQL 
  320. database object. The Automatic refresh check box is checked as the default. 
  321.  
  322. When you close the Settings notebook, the tables and views you have selected to 
  323. include will appear as icons in your SQL Database object folder. 
  324.  
  325. If you do not want the tables and views you have selected to be included 
  326. automatically in your SQL database object, deselect the check in the Automatic 
  327. refresh check box. 
  328.  
  329. When you close the Settings notebook the changes you have made to the Include 
  330. page will be saved, but will not be applied to your SQL database object. 
  331.  
  332. To apply the changes and see the tables and views you have selected, you must 
  333. select Refresh now from the SQL database object's pop-up menu. 
  334.  
  335. Close the notebook to save the changes you have made. 
  336.  
  337.  
  338. ΓòÉΓòÉΓòÉ <hidden> Why include Tables and Views? ΓòÉΓòÉΓòÉ
  339.  
  340. Including tables and views in your SQL database object means that you can 
  341. define different collections or groups of tables and views for different 
  342. purposes. For example, you may want to include a collection of tables and views 
  343. for monthly sales and another collection for yearly sales. 
  344.  
  345. When you first open an SQL database object after associating it with a 
  346. database, the object contains only the existing tables and views you currently 
  347. own under your user ID. However, you may want to use other tables and views 
  348. with the database, for example, tables and views that someone else has created, 
  349. or tables and views that you have created using a different user ID. 
  350.  
  351. Knowing how to include tables and views in an SQL database object helps you to 
  352. get the most from your data by giving you the flexibility to personalize your 
  353. database access and use. 
  354.  
  355.  
  356. ΓòÉΓòÉΓòÉ 6. Tutorial Review ΓòÉΓòÉΓòÉ
  357.  
  358.  Reviewing the Visualizer SQL Database Tutorial 
  359.  
  360. You should now feel confident about associating an SQL database object with a 
  361. database, and including tables and views in an SQL database object. 
  362.  
  363. Understand what you did? 
  364. If you feel you did not understand all you did, consider going through the 
  365. lessons again. Next time, double-click on all of the (Why?...) fields for 
  366. lesson explanations and on all of the highlighted text fields for conceptual 
  367. information. 
  368.  
  369. For more information 
  370. You can find conceptual, control and task information in the Visualizer online 
  371. help and in Visualizer Query for OS/2: Using, SH45-5089-00. An online version 
  372. of this book is also provided in your Manuals folder. 
  373.  
  374. What to do now 
  375. You have now completed the SQL Database tutorial. 
  376.  
  377. If you would like to repeat the tutorial, select here on the back-page button: 
  378. Alternatively close the tutorial window by double-clicking on the title-bar 
  379. mini icon. 
  380.  
  381.  
  382. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  383.  
  384. This is a footnote window. The highlighted terms in this tutorial are usually 
  385. displayed in larger windows. Press the escape key on your keyboard to close the 
  386. footnote. 
  387.  
  388.  
  389. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  390.  
  391. This is a footnote window. Why information is usually displayed in larger 
  392. windows.