Component 4: Introduction to Information and Computer Science Unit 6a Databases and SQL.

Slides:



Advertisements
Similar presentations
Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
Advertisements

Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Database table design Single table vs. multiple tables Sen Zhang.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
11 3 / 12 CHAPTER Databases MIS105 Lec14 Irfan Ahmed Ilyas.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
CSC 2720 Building Web Applications Database and SQL.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Introduction to Information and Computer Science Databases and SQL Lecture b This material (Comp4_Unit6b) was developed by Oregon Health & Science University,
Introduction to Information and Computer Science
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Introduction to Accounting Information Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Component 4/Unit 6f Topic VI: Create simple querying statements for the database The SELECT statement Clauses Functions Joins Subqueries Data manipulation.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Prof. Sujata Rao Introduction to Computers & MIS Data Base Concepts Lesson 6.
Prof. Sujata Rao Introduction to Computers & MIS Data Base Concepts Lesson 8.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
HSCI 709 SQL Data Definition Language. SQL Standard SQL-92 was developed by the INCITS Technical Committee H2 on Databases. SQL-92 was designed to be.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
Chapter 14 - Designing Data Access Classes1 Chapter 14 Designing Data Access Classes.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 3 This material was developed by Oregon Health & Science.
Component 4/Unit 6c Topic III Structured Query Language Background information What can SQL do? How is SQL executed? SQL statement characteristics What.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
Zhangxi Lin Texas Tech University ISQS 6347, Data & Text Mining 1 ISQS 6339 Data Management and Business Intelligence Database Review.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Why do we need a database?
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Introduction to Information and Computer Science
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
CIS 250 Advanced Computer Applications Database Management Systems.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 6 This material was developed by Oregon Health & Science.
April 2002Information Systems Design John Ogden & John Wordsworth FOI: 1 Database Design File organisations and indexes John Wordsworth Department of Computer.
Introduction to File Processing with PHP. Review of Course Outcomes 1. Implement file reading and writing programs using PHP. 2. Identify file access.
The Database Concept and the Database Management System (DBMS) 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.
Query Methods Simple SQL Statements Start ….
Information Systems Today: Managing in the Digital World
Chapter 4 Relational Databases
CS1222 Using Relational Databases and SQL
What is a Database and Why Use One?
Database.
What is a Database? A collection of data organized in a manner that allows access, retrieval, and use of that data.
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
A Very Brief Introduction to Relational Databases
CS1222 Using Relational Databases and SQL
Database SQL.
CS1222 Using Relational Databases and SQL
Presentation transcript:

Component 4: Introduction to Information and Computer Science Unit 6a Databases and SQL

Topics In This Unit Topic I: Define and describe the purpose of databases Topic II: Define a relational database Topic III: Describe the SQL querying language Topic IV: Design a simple relational database using data modeling and normalization Topic V: Define the basic data operations for databases and how to implement them in SQL Topic VI: Create simple querying statements for the database Component 4/Unit 6a2 Health IT Workforce Curriculum Version 1.0/Fall 2010

Topic I Define and Describe the Purpose of Databases Storage prior to databases Other forms of storing data Purposes of databases Database hierarchy and terminology Deletion anomaly Component 4/Unit 6a3 Health IT Workforce Curriculum Version 1.0/Fall 2010

Data Storage Prior to Databases Disk file storage Lists stored on disk Problems/shortcomings of disk file storage Data was repeated in multiple disk files (each file needed to have customer identification data) Only key data is repeated in a database. Component 4/Unit 6a4 Health IT Workforce Curriculum Version 1.0/Fall 2010

Data Storage Prior to Databases Cont. A change to repeated data meant that all locations of the data had to be updated. – A change to data in a database is usually only done in one place. Security risks were relatively high – Database security, while still being a problem provided less risk than disk files. Conflicting data storage was relatively high – Conflicting data in a database is rare Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Problems with Data Storage Prior to Databases Cont. If you kept more than one kind of data in a file and you deleted one type, you deleted the other type along with it – Database provided a way to delete each kind of data without deleting any other types. Required transaction fields for a new potential customer might mean that you couldn’t add new customer information without there being a transaction. – Database splits the information so that the new customer information can be added. Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Problems with Data Storage Prior to Databases Cont. All data on a disk file record had to be input even if you didn’t need all the data. I/O is the slowest thing that the computer does. – Data from a database can be input selectively Data from a disk file often required special programming code to be processed. – Databases require less special coding Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Other Methods of Data Storage Arrays are used in programs to store relatively small amounts of repetitive data – Databases can store large amounts of repetitive data Spreadsheets store data that must be visible all the time. – Data in a database is not visible all the time. Conclusion: Databases are a powerful way to store data Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Spreadsheet Business Example Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Purpose of a Database Receive data Store data in a unique repetitive fashion Retrieve data on command Provide internal security Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Hierarchy and Terminology of a Database Data field File Record Elementary data Database Table Row Column Tuple Attribute Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall

Fixing the Deletion Anomaly Component 4/Unit 6a Health IT Workforce Curriculum Version 1.0/Fall