COMU114: Introduction to Database Development 1. Databases and Database Design.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Tenth Edition
Advertisements

Lecture-7/ T. Nouf Almujally
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Introduction to Databases
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
1 SWE Introduction to Software Engineering Lecture 13 – System Modeling.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
File Systems and Databases
Introduction to Databases
Organizing Data & Information
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Introduction to Databases Transparencies
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
M1G Introduction to Database Development 1. Databases and Database Design.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
It refers to the software used to manage the database.
Database Management COP4540, SCS, FIU An Introduction to database system.
Object Oriented Software Development 1. Introduction to C# and Visual Studio.
Introduction to Database
IT – DBMS Concepts Relational Database Theory.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
M1G Introduction to Programming 2 1. Designing a program.
Database Lecture # 1 By Ubaid Ullah.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
Introduction to Databases
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Web-Enabled Decision Support Systems
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
2. Database System Concepts and Architecture
M1G Introduction to Database Development 6. Building Applications.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
HND Agri DBMS Introduction MH Mohamed Nafas 1. Why DBMS? 2  Suppose we need to develop a Information system.  How do we  store the data? (use file.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
Introduction HNDIT DBMS 1. Database Management Systems Module code HNDIT Module title Database Management Systems Credits2HoursLectures15.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
Fall CSE330/CIS550: Introduction to Database Management Systems Prof. Susan Davidson Office: 278 Moore Office hours: TTh
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
DAT602 Database Application Development Lecture 1 Course Structure & Background knowledge.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
IIS 645 Database Management Systems DDr. Khorsheed Today’s Topics 1. Course Overview 22. Introduction to Database management 33. Components of Database.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
An Introduction to database system
Chapter 1: Introduction
Basic Concepts in Data Management
Database.
Database Design Hacettepe University
Chapter 1 Introduction to Database Processing
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Presentation transcript:

COMU114: Introduction to Database Development 1. Databases and Database Design

Teaching staff Jim Paterson Room M628 COMU114 Introduction to Database Development 1. Databases and Database Design #2

Online resources Blackboard Announcements Assessment information Lecture notes, lab & tutorial sheets, etc Links to other resources COMU114 Introduction to Database Development 1. Databases and Database Design #3

Reading No set text – notes will be provided The following books may be useful additional reading: Beginning Database Design: From Novice to Professional (Clare Churcher, Apress, ISBN ) Head First SQL (Lynn Beighley, O'Reilly, ISBN ) Many other books on databases and SQL in the library COMU114 Introduction to Database Development 1. Databases and Database Design #4

What is a database? Any collection of data can be described as a database Computerised database systems are now very commonplace Information is stored in a database every time we: use a bank account book a travel ticket make an appointment with a doctor etc. COMU114 Introduction to Database Development 1. Databases and Database Design #5

Database mangement systems A database is simply the collection of data which you need to store To actually store the data, and to do anything useful with it, you need a Database Management System (DBMS) A DBMS controls the way the data is stored on the computer, and provides ways of getting data in and out of the system COMU114 Introduction to Database Development 1. Databases and Database Design #6

Data models The way in which data is organised for storage in a database is known as the data model Early computer databases developed in the 1960’s used a hierarchical model Similar to the way files and folders are still organised in modern computer file systems Most data does not fit very well into a simple hierarchy COMU114 Introduction to Database Development 1. Databases and Database Design #7

Data models Hierarchical data “Real-world” data – no clear hierarchy COMU114 Introduction to Database Development 1. Databases and Database Design #8

Relational databases Complex data like this is better handled with the relational model Devised by Edgar Codd around 1970 Most databases nowadays are relational databases although there are others: object databases, XML databases A database management system which uses the relational model is called an RDBMS COMU114 Introduction to Database Development 1. Databases and Database Design #9

Databases and Enterprise Information Systems COMU114 Introduction to Database Development 1. Databases and Database Design #10

Simpler architecture Commonly used for smaller systems Doesn’t scale well Can be harder to maintain COMU114 Introduction to Database Development 1. Databases and Database Design #11 work of Business tier is distributed between other tiers

Popular RDBMSs Microsoft Access aimed at small businesses, and useful for desktop applications and systems with a small number of users Oracle scalable and secure, and widely used by large organisations MySQL open-source and quite powerful, widely used in web sites JavaDB a compact DBMS written in Java, and suitable for mobile devices in particular...and many more COMU114 Introduction to Database Development 1. Databases and Database Design #12

RDBMS tools Most RDBMSs include tools to create complete application, for example: form designers – to allow data entry forms to be created for the user interface report designers – to present data to the user stored procedures – to perform processing of data according to business rules COMU114 Introduction to Database Development 1. Databases and Database Design #13

RDBMS and other tools Can use your RDBMS and its tools for everything, or Can use the RDBMS as a component and use other tools and programming languages to create the other components For example the GCUTours case study: data entry forms and reports are created as web pages business logic uses Java COMU114 Introduction to Database Development 1. Databases and Database Design #14

SQL – the language of relational databases To develop applications which use relational databases you usually need to use SQL Structured Query Language This is the language which is used to define queries A query is a request to a DBMS for some specific information Relational databases are sometimes referred to as SQL databases COMU114 Introduction to Database Development 1. Databases and Database Design #15

SQL example SQL queries can be quite easy to understand For example, the following query finds the last name of all the customers in a database: SELECT lastName FROM Customers; SQL can also be used to add, update or delete data, and to build the database in the first place COMU114 Introduction to Database Development 1. Databases and Database Design #16

SQL standards SQL is supposed to be a standard language which is supported by all RDBMSs In fact, you need to be careful because there are some important differences between the versions of SQL used by different systems Different versions of SQL standards (SQL92, SQL99,etc.) Different implementations by RDBMS vendors COMU114 Introduction to Database Development 1. Databases and Database Design #17

Designing a database A well-designed database helps to make sure that the data stored is accurate and consistent and can be retrieved easily What do we mean by inconsistencies? It would, for example, be inconsistent to store a booking without storing the details of the customer making the booking With careful design, we can make sure the database won’t allow this to happen COMU114 Introduction to Database Development 1. Databases and Database Design #18

Steps in designing a database Determining the intended uses of the system Creating a data model Implementing the database COMU114 Introduction to Database Development 1. Databases and Database Design #19

The domain model Data model = domain model COMU114 Introduction to Database Development 1. Databases and Database Design #20

Data modelling techniques We are using object-oriented techniques with UML to design our data model There are other methods which are also commonly used in database design One widely used method is called Entity Relationship Modelling (ERM) Represents the data model as an Entity Relationship Diagram (ERD) COMU114 Introduction to Database Development 1. Databases and Database Design #21

From data model to database Need to consider how the data model can be represented in a specific RDBMS This requires some further design RDBMS software has specific ways of representing and enforcing the entities, attributes and relationships in the data model For example, a data model entity is represented as a table in the relational database COMU114 Introduction to Database Development 1. Databases and Database Design #22

Representing the data model in an RDBMS COMU114 Introduction to Database Development 1. Databases and Database Design #23

Different representations business tier for example as Java classes and objects business logic in Java methods database tier data is stored permanently in a database system queries database to get data it needs to carry out a particular action The system needs to map data from database tables to classes COMU114 Introduction to Database Development 1. Databases and Database Design #24