Lecture 1 - Introduction Databases & module Emma-Jane Phillips Pandon 122.

Slides:



Advertisements
Similar presentations
How data is stored. Data can be stored in paper-based systems including: Reference books Dictionaries Encyclopaedias Directories Index Files Filing systems.
Advertisements

Organisation Of Data (1) Database Theory
Chapter 10: Designing Databases
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 10 Managing a Database.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
Databases and Database Management Systems
Introduction to PL/SQL Lecture 0 – Self Study Akhtar Ali.
Chapter 1 Introduction to Databases
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Lecture-8/ T. Nouf Almujally
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Objectives of the Lecture : This weeks lecture will look at how database tables/relations work. Last week we identified how we could identify the possible.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
Discovering Computers Fundamentals, 2012 Edition Your Interactive Guide to the Digital World.
By: M.Nadeem Akhtar1 The Data Base Management System (DBMS) Ch # 09.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Module Title? DBMS Introduction to Database Management System.
Section 1.1: Slide 1 of 24 Introduction to Relational Databases.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Introduction Objectives of the Lecture : To consider “What is a Database ?” To consider “What is a Relational Database ?” i.e. what is a “relation”, and.
GCSE Information and Communications Technology. Assessment The course is split into 60% coursework and 40% exam You will produce coursework in year 10.
M1G Introduction to Database Development 6. Building Applications.
Databases and Database Management Systems
Relational Databases. Welcome to the module How the module is organized and assessed What YOU need to do to pass this module Database Fundamentals Summary.
© 2007 by Prentice Hall 1 Introduction to databases.
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe the qualities of valuable information.
File Systems and Databases Lecture 1. Files and Databases File: A collection of records or documents dealing with one organization, person, area or subject.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
DATABASE MANAGEMENT SYSTEMS CMAM301. Introduction to database management systems  What is Database?  What is Database Systems?  Types of Database.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Database. Data Base A database is a collection of related data, and the software used in databases to store, organize and retrieve the data is called.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Relational Databases. Objectives of the Lecture : This weeks lecture will look at how database tables/relations work. Last week we identified how we could.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 8 Advanced SQL.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
ITGS Databases.
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.
Microsoft Access 2013 Overview of Microsoft Access Databases.
Database Management Systems (DBMS)
IS 380 Introduction to SQL This lectures covers material from: database textbook chapter 3 Oracle chapter: 3,14,17.
A Guide to SQL, Eighth Edition Chapter Eight SQL Functions and Procedures.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
3/6: Data Management, pt. 2 Refresh your memory Relational Data Model
1 Chapter 9 Database Management. Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
PREPARED BY: PN. SITI HADIJAH BINTI NORSANI. LEARNING OUTCOMES: Upon completion of this course, students should be able to: 1. Understand the structure.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
Advanced Databases COMP3017 Dr Nicholas Gibbins
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
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,
“Introduction To Database and SQL”
A Guide to SQL, Seventh Edition
Physical Changes That Don’t Change the Logical Design
“Introduction To Database and SQL”
The ultimate in data organization
Presentation transcript:

Lecture 1 - Introduction Databases & module Emma-Jane Phillips Pandon 122

Relational Databases Welcome to the module How the module is organized and assessed What YOU need to do to pass this module Database Fundamentals Summary

The module is taught with 1hr Lecture and 1 hr seminars You must make notes in lecture (in addition to the printed booklet) There are NO handouts other than the printed booklet You are expected to do additional reading between lectures and it is assumed that you will have done this You MAY record the lectures provided you ASK, you may NOT video the classes and you do not have permission to distribute the recordings. Seminars must be attended, if you miss the seminar you WILL fall behind, most tutors will NOT see you outside of a seminar. If you do not understand ASK! This module is assessed by Exam and In-class tests (milestones) There is an exam in week 8 (reading week) worth 50% Milestones are worth 12½ % each and are in week 13 of semester 1, and weeks 3, 8 and 13 of semester 2 If you these assessment you WILL RECIVE A MARK OF 0

Relational Databases and SQL So, some questions to start with… 1.What is a database 2.What is a relational database? 3.What are the components of a relational database? 4.What is SQL? Q1. a database is any organised collection of data, paper based or computerised, it could be a well organised filing or collection of micro fiches. In this unit we are referring to computerised data stores, the type that are utilised within businesses and companies. We are looking at electronic data such as text, images etc. Q2. a relational database is where the data in the data store (remember we are looking at electronic data stores in this module) is grouped in data ‘families’ and the groups of data (tables) are connected to each other. For example a database of university data would have groups/tables for students, modules, courses, staff etc. In this course we will look at creating the relational databases and how we identify the data groups and extract the data from the database Q3 a database is made up of things such as tables, data, coding elements. In the databases that we are looking at in this module we are focusing on ‘enterprise’ databases, these are databases that are able to handle large amounts of data and multiple users hitting the database at any one time. This type of database has a Database management system (DBMS) this is the control central for the database. In the majority of databases and all enterprise databases data is accessed via the DBMS and the components of the database are controlled by the DBMS but we will cover this in more detail later Q4. SQL stands for Structured Query Language. It has a variety of versions and extensions depending upon the database that is being accessed. Standard SQL follows a standard that means that all databases supporting the Standard can use that version of SQL. Basic SQL allows the user to select, insert, delete and update data in the database, an extension (called SQL* Plus in oracle) allows aggregation functions, grouping and some manipulation and a further extension (PL/SQL in oracle) will allow you to use a procedural language version of SQL to allow loops and if statements etc.

What is a database? “a collection of data that is permanently stored on a computer” A database must be able to: Hold different types of data in a collection Record the relationships between the different items in the collections Have a ranges of sizes capacity We need to be able to: Insert new data, delete obsolete data & amend existing data in the collection Retrieve data in the collection in a variety of ways Manage the collections so that the data can be permanently stored and protected from corruption or loss.

What data can we hold? A data collection (databases) should be able to hold a range of data types Images Audio files Text Numerical Date Video Maps Etc. 26 th August 1972

 There needs to be a special piece of software to manage the database if the benefits are to be obtained  VERY complex to write so don’t want to have to write own programs to do this  Therefore, buy a Database management system (DBMS)  Change the DB contents to keep them up to date  Find and retrieve data from database  Protect data for accidents and intruders  Store in an effective way on the computer

 In reality databases hold only certain types of data in a true relational database form, we are looking at the Rdb in this course and although we need to be aware to the theoretical possibilities we are mainly focusing on the real world situation.  A relation is just a logical structure that contains related data (hence the term relation) it is commonly referred to as table but the correct term is relation (books will use either term)  A relation/table may hold the name, address, date of birth, enrolment number of a student. All the data in one collection or row would relate to one student and all the different rows in the collection would be related to students.

As mentioned, all the data in a database is held in a cluster of similar data (normally similar MEANING not DATATYPE) NameAddressD of BCustomer number` Esmé WeatherWaxThe cottage, Lancre Susan Sto Helit1 South Hights Sto Helit 26/ In the above table, all the data would be the type of data you may find in a CUSTOMER table, we have the name, address, etc. Note: not all data is entered, some data may be optional.

First NameSurnameLocationJobMarital Status Profile image SamVinesAnkh-MorporkWatch Commander Married WilliamDe WordeAnkh-MorporkNewspaper Editor SingleNone available JasonOggLancreBlacksmithMarriedNone available EsmeraldaWeatherwaxLancreWitchSingle ThomasSilverfishAnkh-MorporkAlchemistSingleNone available Data can be of different formats or data types in a database, some data though may be held but not available to have all actions on them for example, a picture can be added or deleted but not updates (you can not change Esmerelda’s hat for a bonnet etc) it is more common to find the data above held as

First Name SurnameLocationJobMarital Status Image location SamVinesAnkh- Morpork Watch Commande r Married //pictures/sam.gif WilliamDe WordeAnkh- Morpork Newspaper Editor Single JasonOggLancreBlacksmithMarried EsmeraldaWeatherwa x LancreWitchSingle //images/witch/Esmé.jpg ThomasSilverfishAnkh- Morpork AlchemistSingle In the above table we can see that the image has no longer been embedded into the table, instead the location of the image is displayed, this data would be used to locate the image if it is needed but the data itself remains true to the relational principles.

 There are various books or papers that discuss databases, and it is often confusing to find that 2 different sets of terms are used, one set RELATIONAL terminology and another SQL terminology.  Relations and datasets are normally displayed or depicted as tables so often the term TABLE is used in SQL rather than RELATION  Tables have columns and rows so most SQL terminology uses these terms  Table= Relation  Column = Attribute  Row = Tuple

The database is made of tables/relations and relationships. StudentModuleProgramme 3 tables: student hold the student personal data, programme includes data on the different programme structures and module contains information on the different modules. The tables each hold data that will stand in isolation, if we need info on the BIS programme of the Games programme we look in the programme table but also the tables relate to each other, a student is enrolled on a programme and each programme has a number of modules associated with it and modules may run on a number of different programmes StudentModuleProgramme

 It is important that relationships between data are clear and understood in order to get the most out of the database and its data  There are different types of relationships 1 – many Many – Many 1 – 1 )Normally 1 – many are the types of relationships that we need to foster)

A company employees a number of people, the personal details such as name, address, salary and payroll number etc are held in the works database. Each employee works for a department and each department is responsible for a number of different projects. 1. What are the main clusters of data (this will give you the tables/relation) 2. What content will be in each of the identified tables/relation (this will give you the columns/attributes within the table/relation) 3. Think about how the different data relates to each other

Employee project department First nameSurnameDate of BirthaddresspostcodeEmployee number Department number Department name LocationPostal address Postal postcode project number Project summary Project manager Start dateCompletion date Note: When you are designing a database you need to identify the attributes/columns from the existing data or discussions with the client. An employee works for one department A department has many employees A department has many projects A project is run by one department

 In the seminar you are to do Seminar task 1.  Before next weeks lecture you are expected to read all the notes in the booklet that relate to this weeks lecture (up to page 17)  Next week we are going to look at the tables/relations in more detail, how they work, what additional elements we have to include in addition to the expected attributes and what limitations they have.