Introduction to Database ISYS 363. File Concepts File consists of a group of records. Each record contains a group of fields. Example: Student file –SIDSnameMajorSexGPA.

Slides:



Advertisements
Similar presentations
Information Systems Chapter 2 Organizing Data and Information.
Advertisements

Advance Database System
Database BA471 – Fall 2007 Dr. V.T. Raja Oregon State University.
File Processing with Excel’s List. List An Excel list consists of columns and rows of data structured in a specific way: – Each column contains the same.
ETEC 100 Information Technology
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Introduction to Database ISYS 363. File Concepts File consists of a group of records. Each record contains a group of fields. Example: Student file –SIDSnameMajorSexGPA.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Introduction to Database. File Formats Comma delimited file –"s1","peter",3 –"s2","paul",2.5 –"s3","mary",3.5 –Demo: Excel – Data/Import Extended Markup.
Introduction to Database ISYS 263. File Concepts File consists of a group of records. Each record contains a group of fields. –Key field, grouping field,
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Database Management Systems ISYS 464 David Chao. Introduction to Databases The most important component in an information system Created to support all.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Managing Enterprise Database ISYS 464 David Chao.
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
Databases Dr. V.T. Raja Oregon State University. Databases – Part 1: Outline Introduction Data Hierarchy Traditional file management Terminology Database.
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Software Application
Data Modeling Using the Entity-Relationship Model
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
CHP - 9 File Structures. INTRODUCTION In some of the previous chapters, we have discussed representations of and operations on data structures. These.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Introduction to database systems
Web-Enabled Decision Support Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Storing Organizational Information - Databases
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
CPSC 603 Database Systems Lecturer: Laurie Webster II, M.S.S.E., M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 2 Introduction to a First Course in Database Systems.
Chapter 9 Database Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Database Concepts Track 3: Managing Information using Database.
Department of Industrial Engineering Sharif University of Technology Session# 9.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
Data Modeling with ERD BUS 782. Entities An entity is a person, place, object, event, or concept in the user environment about which the organization.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Introduction to Databases CISC Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
An Introduction to Database Systems دانشگاه علم و فناوری مازندران - طراحی و ایجاد بانک های اطلاعاتی 1.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Howard Paul. Sequential Access Index Files and Data File Random Access.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Chapter 5 Record Storage and Primary File Organizations
Data Modeling with ERD ISYS 363.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Introduction to Database
Introduction to Database
Introduction to Database
Presentation transcript:

Introduction to Database ISYS 363

File Concepts File consists of a group of records. Each record contains a group of fields. Example: Student file –SIDSnameMajorSexGPA –S1PeterCISM3.0 –S3PaulACCTM2.7 –S5MaryCISF3.2

Examples Database file –Created and managed by a DBMS Spreadsheet file –Created and managed by a spreadsheet software XML file Comma-Delimited file – A text file that can be processed by any programming languages, DBMS and spreadsheet. –"s5","peter",3.5 –"s1","paul",3 –"s7","mary",2 Comma-Delimited file demo: stdata.txt –Access – File/Get External Data/Import –Excel – Data/Import External Data/Import Data

XML John Smith Peter Chen David Chao $45.00 This is a grerat book Adam Smith $25.00 This is a second great book

Relational Database Data is logically structured within relations. Each relation is a table (file) with named columns (attributes, fields) and rows (records).

File Concepts Each file must have one key field. Key field uniquely determines a record in a file. Grouping field: A filed that can be used to group records, for example, Major in the Student file. Calculated filed: A field whose value is derived from existing fields, for example, Age can be calculated from DateOfBirth. Each field can hold only one value.

Basic File Processing Excel Demo Sorting/Grouping Compute subtotals –Chart using subtotals Selecting records meeting criteria –Filter –Custom filter

File Organization and Access Sequential file (heap file): Records are organized in sequence in the order in which they are entered. File access: –Sequential access –Direct access Index file: Key + record’s location (address)

Direct access time 1. Seek time: This is the time needed to mechanically position the read/write head on the correct track. 2. Rotational delay: This is the time needed to wait for the beginning of the required block to rotate into position under the read/write head 3. Data transfer time: Time needed to transfer the data.

Other file organization Hash file (direct file) –Hashing function, H –Record location = H(key) –Search a record with key K1: Location of record with key K1 = H(K1)

Database Concepts A database is a collection of related files. –Support business operations –Provide information A database management system is a software that enables users to create and maintain a database.

Major Functions of Database Management Creating a database –Analysis: Entity-Relationship Diagram –Design: Design file structure –Implementation Accessing a database Updating a database

Database design objectives Eliminate data duplication. –Inconsistent data, double entry, waste space Link related records in related tables. Example: –StudentTable: SID, Sname, Address, Major, –StudentAccountTable: SID, Sname, Address, Balance Example: –Company Database Department table: DID, Dname, DepOffice, DepPhone Employee table: EID, Ename, Address, , Salary Note: A table’s key field plays an important role in linking related records.

Design a database for a company to keep track of employees, departments and projects. The company is organized into departments. Each department has a unique number, name. Each department controls a number of projects, each of which has a unique number, and name. Several employees may work on the same project. We store each employee's SSN, name, address, salary, and birthday. An employee is assigned to one department but may work on several projects. An example of database design problem

Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend to collect data. An entity has certain characteristics (properties) known as attributes (fields). Entity type(Entity set): a set of similar entities. A business environment may involve many entity types. –University: Faculty, Student, Course –Department, Employee, Dependent –Sales person, Customer, Order

Entity-Relationship Diagram Relationship: Interaction between entity types. –Faculty teach Course, Faculty advise Student –Customer open Account, Customer purchase Product. Binary relationship: A relationship involves two entity types. Three types of binary relationship: –1:1, 1:M, M:M