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

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Welcome ΓòÉΓòÉΓòÉ
  3.  
  4.  
  5. ΓòÉΓòÉΓòÉ <hidden> Dummy ΓòÉΓòÉΓòÉ
  6.  
  7.  
  8. ΓòÉΓòÉΓòÉ <hidden> Dummy ΓòÉΓòÉΓòÉ
  9.  
  10.                                  Welcome to the
  11.                                    Visualizer
  12.                                 SQL View 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 View Lessons ΓòÉΓòÉΓòÉ
  109.  
  110.  Visualizer SQL View Lessons 
  111.  
  112. Use a Visualizer SQL view object to look at a subset of information from 
  113. selected SQL tables. The information in an SQL view can be taken from just one 
  114. table in a database, or from several tables. 
  115.  
  116. If an SQL view object is read-only you can use it to browse the information in 
  117. a database. 
  118.  
  119. If an SQL view object can be updated, you can use it to change or add 
  120. information to a database as well as browse information. 
  121.  
  122. An SQL view can be included in an SQL database object, its contents can be 
  123. printed, and it can be used as the data source for a report or a query. 
  124.  
  125. Lesson 1: Looking at data in an SQL view 
  126. In this lesson you will learn how to use an existing SQL view object to look at 
  127. data. 
  128.  
  129. This lesson takes 10 minutes to complete. 
  130.  
  131. Lesson 2: Creating a new SQL view based on an existing one 
  132. In this lesson you will create a new SQL view object based on an existing SQL 
  133. view. You will also read about how to create your own SQL View template. 
  134.  
  135. This lesson takes 25 minutes to complete. 
  136.  
  137.  
  138. ΓòÉΓòÉΓòÉ 4. 1. Looking at Data in a View ΓòÉΓòÉΓòÉ
  139.  
  140.  Looking at Data in a View 
  141.  
  142. When you catalog an existing database the views in that database are available 
  143. for you to work with. You might need to update information in a view, add 
  144. information to a view, or remove information from a view. 
  145.  
  146. In this lesson you will learn how to use an existing SQL view to look at a 
  147. subset of data in a database. 
  148.  
  149. (Why?...) 
  150.  
  151. Steps 
  152. 1. Open an existing SQL view. 
  153. 2. Look at the data. 
  154. 3. Save any changes then close the view. 
  155.  
  156.  
  157. ΓòÉΓòÉΓòÉ 4.1. 1.1 Open an SQL View ΓòÉΓòÉΓòÉ
  158.  
  159. When Visualizer was first installed on your computer, SQL database objects were 
  160. created for all the databases you have access to. These objects contain icons 
  161. for the SQL tables and SQL views that are available for use with each database. 
  162.  
  163. For more information about SQL database objects read the SQL Database tutorial. 
  164.  
  165. Open an SQL database object that you have access to. 
  166.  
  167. The SQL database object contains icons that represent the tables and views 
  168. associated with this database. 
  169.  
  170. Open an SQL view by double-clicking on its icon. 
  171.  
  172. The SQL view opens. It displays rows and columns of information, and is similar 
  173. in layout to an SQL table or Visualizer table. 
  174.  
  175. Information at the bottom of the view shows the number of rows of data 
  176. retrieved from the database (the Number of rows fetched) and the maximum number 
  177. of rows that can be retrieved from the database (the Fetch limit). 
  178.  
  179. If the view is in browse mode you cannot change or add information. 
  180.  
  181. If the view is in update mode you can make changes or add information. 
  182.  
  183.  
  184. ΓòÉΓòÉΓòÉ 4.2. 1.2 Look at the data ΓòÉΓòÉΓòÉ
  185.  
  186. You can always look at the contents of an SQL view, whether it is in browse or 
  187. update mode. However, you can only change or add data to an SQL view if the 
  188. view is is in update mode. 
  189.  
  190. Sroll through the view, looking at the data. 
  191.  
  192. If allowed, make any changes you want to. 
  193.  
  194. Making changes and adding data to an SQL view is very similar to making changes 
  195. and adding data to an SQL table or Visualizer table. 
  196.  
  197. For more information on changing data, read the SQL Table and the Visualizer 
  198. Table tutorials. 
  199.  
  200.  
  201. ΓòÉΓòÉΓòÉ 4.3. 1.3 Save and Close ΓòÉΓòÉΓòÉ
  202.  
  203. Select  from the tool bar, if you have made changes to your SQL vIew, 
  204.  
  205. The changes you have just made to your SQL view have been saved. 
  206.  
  207. If you make changes to any Visualizer object and try to close the object 
  208. without saving the changes, Visualizer will ask you to confirm that you really 
  209. do want to close the object without saving the changes. In this way you should 
  210. never lose work that you have forgotten to save. 
  211.  
  212. Double-click on the title-bar icon. 
  213.  
  214. Your SQL view is now closed. 
  215.  
  216.  
  217. ΓòÉΓòÉΓòÉ <hidden> Why Look at a View? ΓòÉΓòÉΓòÉ
  218.  
  219. SQL databases can hold enormous amounts of information. Usually more 
  220. information than you would ever need! This is when SQL views become especially 
  221. useful. 
  222.  
  223. You can use an SQL view to look at a subset of the information in a database, 
  224. without having to looking at all the other information that the database 
  225. contains. 
  226.  
  227. An SQL view stores details of precisely which information you need to look at. 
  228. In this way you can quickly and easily access precisely the information you 
  229. need. However, to do this you must know how to open an SQL view and how to look 
  230. at the information it contains. Read through this short lesson and you will 
  231. learn how to do this. 
  232.  
  233.  
  234. ΓòÉΓòÉΓòÉ 5. 2. Creating a new SQL View ΓòÉΓòÉΓòÉ
  235.  
  236.  Creating a new SQL view 
  237.  
  238. You can create a new SQL view in one of three different ways: 
  239.  
  240. o You can base your new SQL view on an existing SQL view 
  241.  
  242. o You can use an SQL View template that you have created 
  243.  
  244. o You can use the SQL View template provided with Visualizer 
  245.  
  246. In this lesson you will create a new SQL view based on an existing SQL view. 
  247.  
  248. You will also read about how to create your own SQL View template. 
  249.  
  250. (Why?...) 
  251.  
  252. Steps 
  253. 1. Create your new SQL view from an existing one. 
  254. 2. Change the settings for the new view. 
  255. 3.Apply the view then close it. 
  256.  
  257.  
  258. ΓòÉΓòÉΓòÉ 5.1. 2.1 Create a new SQL View ΓòÉΓòÉΓòÉ
  259.  
  260. Locate the existing SQL view that you want to base your new view on. 
  261.  
  262. You can use an existing SQL view from any folder. 
  263.  
  264. Select the existing SQL view object. 
  265.  
  266. The menu for the existing SQL view object is displayed. 
  267.  
  268. Select Create from from the menu. 
  269.  
  270. An icon for your new SQL view object is created and displayed in the same 
  271. folder as the existing one. 
  272.  
  273. If you want to move your new SQL view to a different folder, simply drag it and 
  274. drop it onto the new folder, 
  275.  
  276.  
  277. ΓòÉΓòÉΓòÉ 5.2. 2.2 Change the Settings ΓòÉΓòÉΓòÉ
  278.  
  279. To change any of the settings for your new SQL view object, and to apply the 
  280. view to a database, you use the new object's Settings notebook. 
  281.  
  282. Display the menu for your new SQL view by selecting the SQL View icon. 
  283.  
  284. Select on the arrow to the right of Open. 
  285.  
  286. Select the Settings choice. 
  287.  
  288. The Settings notebook for your new SQL view object is now open and displayed on 
  289. your screen 
  290.  
  291. If you want to make the view different to the original one that it was based 
  292. on, modify the information for the view or its columns. 
  293.  
  294. If you want to create an SQL View template which you could use to create 
  295. several similar SQL views, check the Template check box on the General page of 
  296. the Settings notebook. If you do create a template view, remember not to apply 
  297. the template view to a database. (Applying a view to a database is discussed in 
  298. the next step.) 
  299.  
  300. Do not close the Settings notebook just yet as you still have to apply the view 
  301. to the database. 
  302.  
  303.  
  304. ΓòÉΓòÉΓòÉ 5.3. 2.3 Apply the View then Close it ΓòÉΓòÉΓòÉ
  305.  
  306. Before you can use your new SQL view to look at a database you must apply its 
  307. settings to the database. 
  308.  
  309. Select the View tab on the Settings notebook. 
  310.  
  311. The View page on the Settings notebook is opened. 
  312.  
  313. Select Apply all on the View page of the Settings notebook. 
  314.  
  315. Close the Settings notebook by double-clicking on the System menu in the top 
  316. left corner of the notebook. 
  317.  
  318. The changes you have made to your new SQL view object are saved, the view is 
  319. applied to the database, and the Settings notebook closes. 
  320.  
  321. Your new SQL view is now ready for you to use. 
  322.  
  323.  
  324. ΓòÉΓòÉΓòÉ <hidden> Why Create a new SQL View ΓòÉΓòÉΓòÉ
  325.  
  326. An SQL view stores details of precisely which information you need to look at. 
  327. In this way you can quickly and easily access precisely the information you 
  328. need. 
  329.  
  330. However, before you can use an SQL view you must create it and define exactly 
  331. which information you are interested in looking at, and where that information 
  332. is stored. 
  333.  
  334. Visualizer SQL View makes things as easy as possible for you by offering you 
  335. three alternative ways to create an SQL view. This lesson discusses one of 
  336. these ways and makes a passing reference to another. 
  337.  
  338.  
  339. ΓòÉΓòÉΓòÉ 6. Tutorial Review ΓòÉΓòÉΓòÉ
  340.  
  341.  Reviewing the SQL View Tutorial 
  342.  
  343. You should now feel confident about using an existing SQL view object to look 
  344. at data in a database, and creating a new SQL view object based on an existing 
  345. SQL view. You should also have an insight into creating new SQL view objects in 
  346. other ways. 
  347.  
  348. Understand what you did? 
  349. If you feel you did not understand all you did, consider going through the 
  350. lessons again. Next time, double-click on all of the (Why?...) fields for 
  351. lesson explanations and on all of the highlighted text fields for conceptual 
  352. information. 
  353.  
  354. For more information 
  355. You can find conceptual, control and task information in the Visualizer online 
  356. help and in Visualizer Query for OS/2: Using, SH45-5089-00. An online version 
  357. of this book is also provided in your Manuals folder. 
  358.  
  359. What to do now 
  360. You have now completed the SQL View tutorial. 
  361.  
  362. If you would like to repeat the tutorial, select here on the back-page button: 
  363. Alternatively close the tutorial window by double-clicking on the title-bar 
  364. mini icon. 
  365.  
  366.  
  367. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  368.  
  369. This is a footnote window. The highlighted terms in this tutorial are usually 
  370. displayed in larger windows. Press the escape key on your keyboard to close the 
  371. footnote. 
  372.  
  373.  
  374. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  375.  
  376. This is a footnote window. Why information is usually displayed in larger 
  377. windows.