Você está na página 1de 81
sete ea ery arts [ V hool Department School Year 1995-1996 eG 2 Cie te DBASE Ili PLUS CT gi 1p) Romer E. Gesmundo Estrellita C. Pacifico Coordinator Contains self tests and hands-on learning activities , oe ae RES . Worktext for DBASE III PLUS IV First Edition 1995 : ISBN 971-23-1862-1 Published, copyrighted 1995 and distributed by BBE Book Store, Inc. (RBSD with main office ai, 856 Nicanor Reyes, Sr. St., Sampaloc, Manila; Tels. 41-49-16, 741-49-20. Regional Offices: Sanciangko St., Cebu City, Tels. 760-63, 771-29; 156-A C.M, Recto St., Davao City, Tel. 21-02-72; | 2nd St., Ledesco Village, Jaro, Ioilo City. i Noportion of this book may be copied or reproduced in books, pamphlets, outlines, or notes, whether printed, mimeographed, typewritten, photocopied, or in any other form, for distribution or sale, with- out the written permission of the Publisher and authors. The infringer shall be prosecuted in compliance with the copyright, trademark, patent, and other pertinent laws. The Publisher recognizes the participation of the following while in the course of their employment: Joseph Billontes for the cover design RBSI's Local Book Associations Membership: Association of Philippine Booksellers (APB); Book Development Association of the Philippines (BDAP); Philippine Educational Publishers Association (PEPA) : PEPA’s International Book Associations Membership: Asian Pacific Publishers Association (APPA); Association of South East Asian Publishers (ASEAP); International Publishers Association (IPA) Printed by a REX PRINTING Company, INC. 84-86 P. Florentino St., Sta. Mesa Heights, Quezon City, Tels. 712-41-08, 712-41-01; Fax no. 711-54-12 TABLE OF CONTENTS Chapter 1 DATABASE CONCEPTS AND HISTORY 1.1 History.... 1.2 Data Management on a Computer melon fared BIE @ oa & a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book Chapter 9 PERFORMING CALCULATIONS 9.1 The ? Command 9.2 Summing Up Numeric Fields .. 9.3 Getting the Average .. Counting the Number of Database Records BS £2288 a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book System Built-in Calculator If you want to do some computing while you are in your record, DBase has its own built-in calculator. These are some of the mathematical operations. SYMBOL OPERATION + add - subtract / dividd . multiply ** or 4 exponentiation SQRT ) square root This can be done simply with the dot prompt. .? *** Note *** follow the MD/AS rule in mathematics Examples: .? 25/5 : 5 .? SQRTV81) 9 1.3 THE KEYBOARD It is assumed that all of you are familiar with the keyboard keys. FUNCTION KEY EQUIVALENT DBASE COMMAND Fi Help F2 Assist F3 List rm Dir FS Display Structure Fe Display Status FI Display Memory Fs Display Fo Append Fi0 Edit To change these function values, you can use this syntax: SET FUNCTION to ‘You can use a series of values into a single function key like this ex- ample: SET FUNCTION 9 TO CLEAR; CLOS ALL; USE STUDENTS; LIST NAME, SECTION. a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book OduONS72 - Sid -T1T "EVER -a ¢ “sig CHAPTER 2 . STARTING DBASE III PLUS OBJECTIVES * 1. *Run DBase II Plus 2. Execute DBase IHI Plus commands from the dot prompt 3. Set up default to data drive 4. Quit from DBase III Plus 2.1 LOADING DBase Ill PLUS SYSTEM ON A FLOPPY DISK SYSTEM Boot your system using valid DOS (see Introduction), when A prompt appears (A:\> or A>) insert system 1 in drive A and data disk in drive B and follow steps below. 1. AA\>DBase press key After a delay, this will prompt you on your screen. DBase III Plus Version 1.1 ‘This Software Is Licensed to: Benedictine Abbey School Copyright (c) Ashton-Tate 1985, 1986. All Rights Reserved. DBase, DBase III Plus and Ashton-Tate are trademarks of Ash- ton-Tate. ‘You may use the software and printed materials in the DBase III Plus package under the terms of the Software License Agree- ment; please read it. In summary, Ashton-Tate grants you a paid- up, non-transferable, personal license to use DBase III Plus on one computer work station. You do not become the owner of the package nor do you have the right to copy (except permitted backups of the software) or alter the software or printed mate- rials. You are legally accountable for any violation of the License Agreement and copyright, trademark, or trade secret law. Press — to assent to the License Agreement and begin DBase Il Plus. Fig. 2.1 DBase II Plus Initial Screen After a few seconds of waiting, another message will flash on your screen which goes like this: Insert System Disk 2 and press ENTER key, or press Ctrl-C to abort. a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book For example, HELP displays the main menu of the HELP system. HELP (command) displays the associated command screen in the HELP system Fig. 2.6 Help Screen (getting into) 2.4 SETTING DEFAULT TO DATA DRIVE Most of the DBase users use drive B as their data drive for those who are using floppy disk drive. And to set that drive for data, they type this command from the dot prompt, SET DEFAULT TO B followed by ENTER key Command Summary : «SET DEFAULT TO 2.5 QUITTING FROM THE SYSTEM Exiting from the System If you want to have a break, that is, exiting from the system, DO NOT TURN OFF YOUR COMPUTER without exiting DBase system. You may destroy your files if you do this. The QUIT command from the dot prompt will help you. So from the dot Prompt type QUIT and this will prompt on your screen: “** END RUN DBase III Plus then you can remove your data and the system disk. a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book Steps in Creating .DBF Using Create Command (if you are using two disk drives) 2, From dot prompt type “SET DEFA TO B” then press key, this is done so that all created files will be saved on default drive B. set. def a tob Enter a DBase III Plus command. Fig. 3.1 ‘You will notice that the default drive on status line will be changed from drive A to drive B after pressing key. A database filename should not exceed 8 characters and extension of -DBF will automatically be created. example, type in STUDENTS . crea biodata Le ei ie SS Enter a DBase II Plus command. ——— Fig. 34 after pressing key this will be displayed on your screen: 15 a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book a You have elther reached a page that is unavailable for viewing or reached your viewing lil far this book So, practically after saving, you will be back to the dot prompt displaying your status bar at command line (the status line also includes the database file in use and the number of records saved in that file). Retrieve STUDENTS.DBF, add ten (10) more records, and let your teacher check your work.

Você também pode gostar