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.

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

Physical DataBase Design
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module C Designing Databases and Entity-Relationship.
Extended Learning Module C
© McGraw-Hill Companies, Inc., McGraw-Hill/Irwin Extended Learning Module C Designing Databases and Entity-Relationship Diagramming.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Advance Database System
Data Modeling and Relational Database Design ISYS 650.
ETEC 100 Information Technology
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.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
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.
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.
Extended Learning Module C Designing Databases and Entity-Relationship Diagramming McGraw-Hill/Irwin Copyright © 2010 by the McGraw-Hill Companies, Inc.
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 ISYS 263. File Concepts File consists of a group of records. Each record contains a group of fields. –Key field, grouping field,
Data Modeling ISYS 464. Database Design Process Conceptual database design: –The process of creating a data model independent of implementation details.
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.
Databases and Database Management Systems
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Database Software Application
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
MS Access 2007 IT User Services - University of Delaware.
CS 405G Introduction to Database Systems
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
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 /
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 /
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Introduction to SQL Steve Perry
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
CIS 103 — Applied Computer Technology Last Edited: September 17, 2010 by C.Herbert Using Database Management Systems.
Databases. Database A database is an organized collection of related data.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
SQL Structured Query Language Programming Course.
Relational Databases (MS Access)
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
Organizing Data Revision: pages 8-10, 31 Chapter 3.
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
ITGS Databases.
Databases & Access Today’s Topic: Databases Define: Database Software Examine the different uses of database software Define the four components.
+ Information Systems and Databases 2.2 Organisation.
Database Concepts Track 3: Managing Information using Database.
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.
Copyright © Curt Hill Entities and Relationships The basics and what they have to do with database.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Sample Table Standard Notation Entity name in uppercase
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Introduction to Access ISYS 363. Access Objects Tables –Open a table: Double click the table name –Home/View: Datasheet view Design view Queries Forms.
Data Modeling with ERD ISYS 363.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Introduction to Database
Introduction to Database
Querying Database ISYS 363.
Introduction to Database
Presentation transcript:

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 Language (XML) document Spreadsheet list Database table

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

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

File Concepts Each file must have one key field. Key field uniquely determines a record in a file. –Simple key, composite key 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.

Calculated Field Example (1) DateOfBirth -> Age Date functions: –Now –Today –Year –Etc. Age =

Calculated Field Example (2) Salary field -> IncomeGroup –Salary Low –40000 Median –Salary > 70000, -> High

Which field is the key field?

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.

Database Concepts A database is a collection of related files. –Support business operations –Provide information

Database Management System A database management system (DBMS) 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. Example: –Student file: SID, SNAME, ADDR, MAJOR, GPA –Student Account File: SID, SNAME, ADDR, BALANCE Link related records in the related tables.

An Example of Database Department, Employee: –Each department has many employee, and each employee works for one department. Design a database so that we can: –Find which department David Chao works for. –Find all the employees that work for the Personnel department.

Entity-Relationship Diagram Entity (Entity set): a set of similar objects. A business environment may involve many entities. –University: Faculty, Student, Course –Customer, Employee, Order A business operation may involve more than one entities. –Faculty teach Course, Faculty advise Student –Customer open Account, Customer purchase Product.

Relationship 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 kinds of Binary Relationship 1:1 –Each student has one account –Each account belongs to one student 1:M –Each college has many departments –Each department belongs to one college M:M –Each student can take many courses –Each course can be taken by may students

Student Account Has 11 Course Enroll M M Faculty Department

Attributes Properties of an entity or a relationship. –Student: SID, Sname, DateOfBirth Primary key Derived attributes: –Age

Student SID Sname Phone DateOfBirth Age

Database Design Demo Each entity translates to a table. Relationships are implemented by foreign key or relationship table. Example 1: University database Example 2: Customer/Orders

Implementation with Access Access objects: –Tables Open Design New Wizard –Queries –Forms –Reports –Pages

Creating a Table Create table in design view –Field name –Field data type Create table by using wizard Create a primary key Enter data

Querying Database