Database Structure Chapter 16.

Slides:



Advertisements
Similar presentations
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Advertisements

Chapter 15 A Table with a View: Database Queries.
Chapter Information Systems Database Management.
3-1 Chapter 3 Data and Knowledge Management
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 15: Using LINQ to Access Data in C# Programs.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
Database Organization and Design
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Inner Join vs. Outer Join
Using Special Operators (LIKE and IN)
Storing Organizational Information - Databases
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Use XML.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Announcements Informatics major Information session tomorrow 12:30-1:30 in MGH 420 Informatics video 12/15/2015D.A. Clements, MLIS, UW iSchool 1.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
WEEK# 12 Haifa Abulaiha November 02,
Manipulating Data Lesson 3. Objectives Queries The SELECT query to retrieve or extract data from one table, how to retrieve or extract data by using.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
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.
Lecture 16 Introduction to Database Concepts. Differences Between Tables and Databases Database: table of info –iTunes –Automobile registrations –Demography.
Databases and DBMSs Todd S. Bacastow January
Chapter 1 Introduction.
Rob Gleasure robgleasure.com
Introduction to Databases by Dr. Soper extended with more examples
Databases Chapter 16.
Information Systems Today: Managing in the Digital World
Chapter 12 Information Systems.
A Table with a View: Database Queries
Information Systems Database Management
Chapter 4 Relational Databases
CS1222 Using Relational Databases and SQL
Relational Algebra Chapter 4, Part A
Databases and Information Management
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Chapter 9 Database and Information Management.
CS1222 Using Relational Databases and SQL
D.A. Clements, UW Information School
PHP and MySQL.
Relational Algebra Chapter 4, Sections 4.1 – 4.2
Rob Gleasure robgleasure.com
Databases and Information Management
Getting to First Base: Introduction to Database Concepts
A Table with a View: Database Queries
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
Getting to First Base: Introduction to Database Concepts
A Very Brief Introduction to Relational Databases
Rob Gleasure robgleasure.com
Getting to First Base: Introduction to Database Concepts
A Table with a View: Database Queries
CS1222 Using Relational Databases and SQL
DATABASE Purpose of database
Manipulating Data Lesson 3.
CS1222 Using Relational Databases and SQL
Presentation transcript:

Database Structure Chapter 16

Structure Of A Database We want to arrange the information in a database in a way that users see a relevant-to-their-needs view of the data that they will use continually

Physical vs. Logical Databases

Physical vs. Logical Databases The point of the two-level system is to separate the management of the data (physical database) from the presentation of the data (logical view of the database)

Physical Databases Designed by database administrators Fast to access No redundancy/duplicate information Multiple data can lead to inconsistent data Backup copies in case of accidental data deletion or disk crash

Logical Database Creating specialized versions/views of the data for different users' needs Creating a new copy from the single data each time

Queries A query is a specification using operations that define a table from other tables SQL (Structured Query Language) Seen in last lecture Standard database language to write queries

Defining Physical Tables Database schemas Metadata specification that describes the database design

Database Schema

Connecting Database Tables by Relationships Different tables can have different security access restrictions based on their data For example, some can access Home_Base data without having access to more sensitive data in Students Separate tables but not independent Student_ID connects (establishes a relationship) between the two tables

The Idea of Relationship A relationship is a correspondence between rows of one table and the rows of another table Because the key Student_ID is used in each table, can find the address for each student (Lives_At) AND can also find the student for each address (Home_Of)

Relationships In Practice

Defining Logical Tables Create a Master Table which combines 2 tables. Construction Using Join Match on the common field of Student_ID SELECT * FROM Students INNER JOIN Home_Base ON Students.Student_ID = Home_Base.Student_ID

Join Resulting Attributes

Practical Construction Using QBE Query By Example Given a template of a table we fill in what we want in the fields

The Dean's View Storing the Dean's Data Top_Scholar is information of interest only to the dean

Join Three Tables into One Join using Top_Scholar, Student, and Home_Base tables matching on the Student_ID attribute across all three tables Trim the Table Project – retrieve certain columns

Creating A Dean's View

SELECT Top_Scholar. Nickname, Students. First_Name, Students SELECT Top_Scholar.Nickname, Students.First_Name, Students.Last_Name, Students.Birthdate, Home_Base.City, Home_Base.State, Students.Major, Students.GPA, Top_Scholar.Factoid, Top_Scholar.Summer_Plans FROM (Home_Base INNER JOIN Students ON Home_Base.Student_ID=Students.Student_ID) INNER JOIN Top_Scholar ON Students.Student_ID=Top_Scholar.Student_ID;

Exercise- Designing a DB Create a Database for administrative services in UW to manage courses and student info. We need to store Student’s Basic information Courses offered (term, faculty, location etc) Basic Information about courses(course no, department, name, etc)

Data to Capture Student id first_name middle_name last_name gpa Course id department course_name course_description SLN term location when_meet faculty

To find out courses taken by the Student. Need another Table course_offering_id (matches with CourseOffering.id) student_id (matches with StudentInfo.id) grade_received