Annex III: Data Base Management System



Similar documents
Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008

Using Delphi Data with Excel and Access

Chapter 5. Microsoft Access

Check out our website!

UTILITIES BACKUP. Figure 25-1 Backup & Reindex utilities on the Main Menu

Introduction to Microsoft Access 2010

Introduction to Microsoft Access 2003

Importing and Exporting With SPSS for Windows 17 TUT 117

DBF Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 7

Introduction to Microsoft Access 2013

TheEducationEdge. Export Guide

MS Access Lab 2. Topic: Tables

Using Ad-Hoc Reporting

Training Needs Analysis

Using Microsoft Access Databases

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

SPSS: Getting Started. For Windows

SENDING S WITH MAIL MERGE

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH:

3.GETTING STARTED WITH ORACLE8i

Using Excel As A Database

Avery Dennison UK Consumer Helpline: Consumer

Working with Access Tables A Continuation

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Creating QBE Queries in Microsoft SQL Server

Groundwater Chemistry

How to Import Data into Microsoft Access

Personal Geodatabase 101

Chapter 4 Accessing Data

Use Find & Replace Commands under Home tab to search and replace data.

Tutorial 3. Maintaining and Querying a Database

Microsoft Office 2010

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Shiavm Computer Training Center 1. FoxPro Programming

Create a New Database in Access 2010

Microsoft Access Basics

SQL Server An Overview

- Suresh Khanal. Microsoft Excel Short Questions and Answers 1

Excel Database Management Microsoft Excel 2003

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro

Microsoft Access 2010 Overview of Basics

Database Applications Microsoft Access

Search help. More on Office.com: images templates

Using SQL Server Management Studio

Joins Joins dictate how two tables or queries relate to each other. Click on the join line with the right mouse button to access the Join Properties.

Microsoft Excel 2007 Mini Skills Overview of Tables

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

Creating and Using Databases with Microsoft Access

Basic Excel Handbook

SPSS for Windows importing and exporting data

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

Access Creating Databases - Fundamentals

Data Tool Platform SQL Development Tools

How To Read Data Files With Spss For Free On Windows (Spss)

INTRODUCTION TO ARCGIS SOFTWARE

Excel 2010 Sorting and Filtering

MS Access. Microsoft Access is a relational database management system for windows. Using this package, following tasks can be performed.

Unit 10: Microsoft Access Queries

Creating an Excel Spreadsheet Report

Creating a Database in Access

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior.

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

Databases in Engineering / Lab-1 (MS-Access/SQL)

Accounts Payable Expense Distribution Tables

Lab 2: MS ACCESS Tables

Creating tables in Microsoft Access 2007

Chapter 2 The Data Table. Chapter Table of Contents

HOW TO CREATE AND MERGE DATASETS IN SPSS

Access Queries (Office 2003)

v4.8 Getting Started Guide: Using SpatialWare with MapInfo Professional for Microsoft SQL Server

The LSUHSC N.O. Archive

Using This Reference Manual Chapter 1 to Issue ACL Commands

Microsoft Excel 2010 Part 3: Advanced Excel

Sage Abra SQL HRMS Reports. User Guide

Introduction to Microsoft Office Access 2010

Business Objects Version 5 : Introduction

Word 2010: Mail Merge to with Attachments

Oracle Database 11g SQL

USB Recorder. User s Guide. Sold by: Toll Free: (877)

Topography of an Origin Project and Workspace

Introduction to Microsoft Access 2007

SPSS (Statistical Package for the Social Sciences)

MICROSOFT ACCESS 2003 TUTORIAL

Excel 2010: Create your first spreadsheet

Access Tutorial 3 Maintaining and Querying a Database. Microsoft Office 2013 Enhanced

Tutorial 3 Maintaining and Querying a Database

2.1 Data Collection Techniques

Using SQL Queries in Crystal Reports

Analyzing Excel Data Using Pivot Tables

AFN-AccountsPayableGuide

Microsoft Access 2010

Utilities ComCash

Six Steps to Completing a Mail-Merge

IN THIS PROJECT, YOU LEARN HOW TO

Transcription:

Annex III: What is DBMS Softwares Data Base Structure Creating Data Base Editing Data Base Querying Data Base Relational Power of Data Base Integration of Numeric and Spatial Data DBMS-1

DBMS-2 Reporting Bio-Physical Applications Socio-Economic Applications DBMS Data Base Fig. 1: in Environmental Reporting.

What is Data Base Management System Data base management system (DBMS) is a program that serves as an interface between application programs and a set of coordinated and integrated files called a data base. Before the use of DBMS there was little, if any, integration or data sharing among the functional information systems. However, there are many opportunities for these systems to share the same data. For instance, the deforestation application could share data with the land use information system. Data base management systems are an interface between the functional applications and the data base, as shown in fig. 1. The DBMS allows the various functional systems to access the same data. The DBMS can pool together related data from deferent files. DBMS is perhaps the most important tool in decision making for sustainable development DBMS-3

DBMS-4 DBMS Softwares There are many softwares which can do the job required in DBMS. These softwares are based on the same basic structures but may have different outlooks. Some commands may be available only in one or a few number versions. The syntax, menu system, and filenames may be somewhat different. Thus it takes a little time but not much to get familiar to another version another similar software. For numeric data: dbase II, dbase III, dbase III+, dbase IV, dbase V Foxbase, Foxbase+, Foxpro Access Paradox, etc. For spatial data: ARC/INFO ARCVIEW MAPINFO SPANS, etc. In exercise Foxpro will be used as an example to illustrate the database structure

Data Base Structure A database consists of a number of tables Each row is a record Each column is a field COUNTRY YEAR CH4_EMISSN SO2_EMISS N Bangladesh 1980 52369 13370 Bhutan 1980 9372 420 India 1980 4986 34 a field a record Each table is kept in a database file with the extension name.dbf Each field has: Field name (10 characters) Field width (fixed for each field) Field type : 5 types (Character, Numeric, Date, Logical, Memo, General, Float) Character: A combination of letters, numbers, spaces, and/or punctuation marks that are treated as a text string. Numeric: A number consisting of a number, a decimal point, and, if it exists, the decimal part of the number. For example, the number 9999.99 requires a field with of 7 Date: An 8 character wide field having the format mm/dd/yy. Logical: A 1 character wide field containing a.t.(true or yes) or.f.(false or no). Memo: A memo field contains ASCII text. General: This field type stores data like pictures and graphs. Float: A floating field especially is just a special case of the numeric field type. DBMS-5

DBMS-6 Creating Database Basic commands in creating a database file CREATE BROWSE MODIFY STRUCTURE USE CLOSE DATABASE CLEAR QUIT :Create a new database file :Edit and append in a similar manner to worksheet :Change the database structure :Open a database file :Close all database files :Erase the screen :Exit the program

Editing Database This section introduces you to commands used in editing database files APPEND :Adds a new record to the bottom of the current database and displays an entry mask to accommodate data input APPEND BLANK :Adds a new blank record but a data entry mask is not displayed when the BLANK clause is used INSERT : Place a new record after the current record. INSERT BEFORE : The BEFORE clause adds the record before the current one. INSERT BLANK : Insert a blank record after the current one. EDIT :Edit the current record EDIT RECORD n :Edit the designated record EDIT FIELD Field1,Field2.. :Restrict the data entry mask to the named fields BROWSE Field1,Field2.. :Display a table that is restricted to the named fields DELETE : Mark the current record for deletion DELETE FOR Condition :Mark all records for deletion that meet the given condition PACK :Remove those records that have been marked for deletion DBMS-7

DBMS-8 COPY TO Dbfile :Copy the current database to the named file COPY STRUCTURE TO Filename : Copy the structure of the open database file to a new database file having the given name SORT ON Field TO Filename :Performing an ascending alphanumeric sort of the current database using one or more named fields as basis for the sort. The sorted output is copied to the named database file SORT ON Field TO Filename DESCENDING : The sorted database will be arranged in descending order INDEX ON Field TO Indexname : Create an alphanumeric index based on the named (key) field. An index file, which has an extension like IDX, jumps the record pointer to the first record that contain the given value in the key field. REINDEX : Reindex an open index file; required when records are records are added or deleted without the index being open. USE Dbfile INDEX Indexfile : Open the database and index file together REPLACE Field WITH Value : Replace the content of the named field with the given value

Following is a list of math operators that are commonly used in querying data Querying Database Symb Operator Example ol + Addition 3+5 - Subtraction 5-3 * Multiplication 3*5 / Divide by 5/3 = Equal to X=3 > Greater than X>Y < Less than X<Y >= Greater than or equal X>=Y to <= Less than or equal to X<=Y <> Not equal to X<>Y ^ Exponent 3^2 Commands commonly used in query operation. LOCATE FOR Field= value :Locates the first record in the open database file that contains a give value in the named field SET FILTER TO: This command is used to designate a group of records with in the current table COPY TO Dbfile FOR Condition :Copy those records matching the given condition to the named file COPY TO Dbfile WHILE Condition :Copy records to the specified database while a certain condition exits DBMS-9

DBMS-10 CREATE QUERY :Activate a query dialog box to select the data of interest

Relational Power of Database The real power of the database management system comes into play when you are using two or more related databases. For example, a typical air pollution database uses many different kinds of information including: Wet deposition Air concentration Land use These databases can be open at the same time and information can be extracted form different files. Each concurrently open file and any corresponding index files are maintained in what is called a work area. A work area is accessed using the SELECT command, described in the following command summary. The key to a successful exchange of information between open database files is to place the record pointer at the right record position within the involved database files. The record pointer stays in place within each database until moved by a command. Work Area File Record No. 1 wetdep 1 2 <-pointer 3 4 2 aircon 1 2 3 4 <-pointer 3 Landuse 1 <-pointer 2 3 4 The record pointer is moved within each database file by first selecting a database and then issuing a command such as LOCATE or GOTO. DBMS-11

DBMS-12 Command Summary The following command summary describes how multiple databases are opened. SELECT n :This command is used to select a work area into which a database file and corresponding index files are maintained. The expression n is the work area number. Example: SELECT 1 USE wetdep SELECT 2 USE aircon SELECT 3 USE landuse SELECT 1 BROWSE SELECT 2 BROWSE SELECT 3 BROWSE

SET RELATION TO Fieldname INTO n : This command establishes a relationship between the currently elected database and the named database (using work area number). The relationship is established based on a common key field. Example: SELECT 1 USE wetdep INDEX wetdep SELECT 2 USE aircon INDEX aircon SET RELATION TO sitename INTO 1 BROWSE FIELDS wetdep.ph, aircon.so2 DBMS-13

DBMS-14 JOIN WITH n TO newdatabasename FOR condition :This JOIN command creates a third database using fields from each of the two open database files. A common field, such as sitename, exists in the two supporting database files and can be used as a basis for joining records in the resulting database file. Example: Put the two databases in work area 1 and 2: SELECT 1 USE landuse SELECT 2 USE wetdep With the two databases in work areas, you are ready to use the JOIN command. You join the two databases to see all values associated with landuse and wet deposition having matching names in the sitename field. Note that the population database was the last database selected, so it is presently active. JOIN WITH landuse TO both FOR sitename = landuse.sitename Joins the information into a new database named both. Now you can place the joined database, named both, in use and check the contents with the BROWSE command.

Integration of Numeric and Spatial data Numeric data tables created in DBF file format can be joined with spatial data created by GIS softwares. Foxpro also have the facility to edit the spatial coverages up to some extent. Following example explain entering numeric data into an ARC/INFO coverage. 1. open the file called pat.dbf using database program 2. Add one additional filed (so2) to accommodate SO2 data MODIFY STRUCTURE <Enter> 5. Enter SO2 concentrations of given monitoring sites 6. Complete the data entry and exit from database program 7. Examine the modification in GIS software ARC/VIEW DBMS-15