M1G505190 Introduction to Database Development 1. Databases and Database Design.

Slides:



Advertisements
Similar presentations
Databases MMG508. DB Properties  Definition of a database: “A database is a collection of interrelated data items that are managed as a single unit”
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
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.
Chapter 3 Database Management
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
File Systems and Databases
Introduction to Databases
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
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.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Attribute databases. GIS Definition Diagram Output Query Results.
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.
Database Management System Lecture 2 Introduction to Database management.
IT – DBMS Concepts Relational Database Theory.
M1G Introduction to Programming 2 1. Designing a program.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Data Modeling and Database Design
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.
Introduction. 
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.
HNDComputing – DeMontfort University  DeMontfort University 2011 Database Fundamentals wk2 Database Design ConceptsDatabase Design Concepts Database Design.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
Dr. Mohamed Osman Hegazi 1 Database Systems Concepts Database Systems Concepts Course Outlines: Introduction to Databases and DBMS. Database System Concepts.
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,
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.
COMU114: Introduction to Database Development 1. Databases and Database Design.
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.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
By Stephanie Wood And Nedziba Bubregovic.  A very large collection of data  A database management system is a software package designed to store and.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Introduction HNDIT DBMS 1. Database Management Systems Module code HNDIT Module title Database Management Systems Credits2HoursLectures15.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The concept of Data, Information and Knowledge  The fundamental terms:  Database and database system  Database.
Fall CSE330/CIS550: Introduction to Database Management Systems Prof. Susan Davidson Office: 278 Moore Office hours: TTh
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.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Introduction to Database Programming with Python Gary Stewart
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
Database Management System (DBMS)
Basic Concepts in Data Management
Database.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Database Design Hacettepe University
DATABASES WHAT IS A DATABASE?
Chapter 1 Introduction to Database Processing
DATABASE TECHNOLOGIES
Presentation transcript:

M1G Introduction to Database Development 1. Databases and Database Design

Teaching staff Jim Paterson Room M628 Lab tutors: June McCrae Andreas Komninos Morteza Zanjireh Abbas Javed Introduction to Database Development 1. Databases and Database Design #2

Online resources GCU Learn Announcements Assessment information Lecture notes, lab & tutorial sheets, solutions Links to other resources 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 Introduction to Database Development 1. Databases and Database Design #4

Assessment Class test (30%) Hand-in assignment (70%) Introduction to Database Development 1. Databases and Database Design #5

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. Introduction to Database Development 1. Databases and Database Design #6

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 Introduction to Database Development 1. Databases and Database Design #7

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 Introduction to Database Development 1. Databases and Database Design #8

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

Relational databases Relatively 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, “NoSQL” databases A database management system which uses the relational model is called an RDBMS Introduction to Database Development 1. Databases and Database Design #10

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

Database servers Introduction to Database Development 1. Databases and Database Design #12 database accessed as file or through local server database accessed through network server

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

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 Introduction to Database Development 1. Databases and Database Design #14

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 Introduction to Database Development 1. Databases and Database Design #15

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 Introduction to Database Development 1. Databases and Database Design #16

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 Introduction to Database Development 1. Databases and Database Design #17

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 Introduction to Database Development 1. Databases and Database Design #18

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 Introduction to Database Development 1. Databases and Database Design #19

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

The data model Data model = domain model classes which represent entities we need to store permanently Introduction to Database Development 1. Databases and Database Design #21

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) Introduction to Database Development 1. Databases and Database Design #22

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 Introduction to Database Development 1. Databases and Database Design #23

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

Different representations business layer for example as Java classes and objects business logic in Java methods database layer 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 Introduction to Database Development 1. Databases and Database Design #25