DOC PREVIEW
UW-Milwaukee COMPSCI 557 - Introduction

This preview shows page 1-2-14-15-30-31 out of 31 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Course Introduction Introduction to DatabasesFirst Reading Assignment“There's a prayer each night that I always pray: Let the data guide me through every day” Warren ZevonData is UbiquitousSlide 5Slide 6Microarrays – An Example of a New Sensing TechnologyOther Data ExamplesEffectively Data Management is EssentialDatabase Management System (DBMS)Some RDBM SystemsMain Goals of this CourseSlide 13Example: Internet Movie Database (IMDB)Building a DB: construct a conceptual modelBuilding a DB: Define DB SchemaA Schema Diagram for “University” DB (from the textbook)Building a DB: Describe Physical Data ModelBuilding a DB: Populate DBQuerying The DatabaseBuilding the Application ProgramImplementing QueriesManaging Physical Data StorageMaintaining Integrity of the DatabaseSummary of TopicsControl AbstractionData AbstractionWhy Use DBMS?Why not to use a DBMS?Schemas and InstancesPeople who work with DBMSsCourse IntroductionIntroduction to DatabasesInstructor: Joe BockhorstUniversity of Wisconsin - MilwaukeeFirst Reading Assignment•Chapters 1 and 2 (today and part of Thursday) Chapter 13 and handout“There's a prayer each night that I always pray:Let the data guide me through every day”Warren ZevonData is Ubiquitous•Three classes of technological advances are changing our relationship with data:•More storage space–allows us to keep more data•Faster processor (and memory) speeds–allows us to access and process more data•Different “sensors”–allows us to access new kinds of datahttp://en.wikipedia.org/wiki/Hard_diskMicroarrays – An Example of aNew Sensing TechnologyThe color of each spot represents the activity level of a gene under some experimental condition10 000s of spots on a single chipA microarrayOther Data Examples•Airline flight management system•Financial data•Commercial store (eg, WalMart) data•Department of Motor Vehicles•Surveillance video•University student records•Baseball results•Web sites•Medical records•...Effectively Data Management is Essential•Organizations need their data to be an asset•Given:the amount of data available to store&costs to manage data (hardware, software, labor) •Ineffective policies can make an organization’s data a liabilityDatabase Management System (DBMS)•DBMS is:–A collection of software programs–General purpose•DBMS enables users to:–Define DB–Construct DB–Change (or update) DB–Ask questions about the data in DB–Share DB•DBMS maintains the integrity of DBSome RDBM SystemsCommercial SystemsOracle ($$$$)DB2 (IBM) ($$$)SQL Server (Microsoft) ($$)Open Source SystemsPostgreSQLMySQLSource: International Data CorporationMain Goals of this Course•To understand how to use a DBMS–How to create DB, data models, SQL,...•To understand how a DBMS works–Physical properties of disks and files, software to manage reading and writing to disk, implementation of algorithms to answer user queries,...catalogDatabases are self-describing: catalog describes the structure of the data stored in the DBExample: Internet Movie Database (IMDB)Building a DB: construct a conceptual modelmoviepersonacts indirector oftitlerelease datename birthdaterolerole type• A conceptual model identifies entities and relationshipsMNN1entityattributerelationshipBuilding a DB:Define DB Schema•A schema describes DB using data model supported by DMBS (eg, relational model)•RDBMS – DBMS that supports relational modelRating DirectorTitleMIDBdayNamePIDRtypeRolePIDMIDMOVIEPERSONACTS_INA Schema Diagram for “University” DB(from the textbook)tablescolumnsBuilding a DB:Describe Physical Data Model•PDM indicates how data is organized on disk•Includes description of access paths or indexes–Example: store “Movie” table with records ordered by MID and construct an index on the “Title” attribute1 The Big Lebowski R 992 Star Wars PG 16270 The Big Chill PG 3The Big ChillThe Big LebowskiFile of records of the MOVIE tableIndex on Title columnBuilding a DB:Populate DBMID Title Rating Director1 The Big Lebowski R 722 Star Wars PG 29...PID Name Bday1 Jeff Daniels 12/4/492 Harrison Ford 7/13/42...MID PID Role Rtype1 1 The Dude STAR2 2 Han Solo CO_STAR...MOVIEPERSONACTS_INSet initial records of the DBQuerying The Database•Most RDBMS allow users to query the database using SQL (structured query language)•Example: get cast of “The Big Lebowski” SELECT Name, Role, RtypeFROM PERSON, ACTS_INWHERE MID = ‘1’ AND PERSON.PID == ACTS_IN.PIDBuilding the Application ProgramImplementing Queries•“Relational Algebra” is a mathematical way to describe operations on relational data•SQL queries correspond to sequence of relational algebra operations–The previous query requires a join operation between person and acts_in•Query Optimization involves finding a good order to carry out operations•Operator implementationManaging Physical Data Storage•RDBMS maintains database (and meta-data) on non-volatile storage (hard disks)•Physical design impacts RDBMS performance•Example: The time to answer a query such as What is the MID of “The Big Lebowski” can be greatly reduced if an index of Title column is maintained for the Movie table.Maintaining Integrity of the Database•Concurrent users–Multiple users may attempt to update simultaneously•Security–Preventing unauthorized access•System failures–If lightening strikes during an update the DB must able to be recoveredSummary of Topics•Conceptual modeling•Logical Modeling•Querying the DB•Building applications •Implementing Queries•Managing hardware•Maintaining Integrity how to use DBMShow a DBMS worksControl AbstractionQuery OptimizationRelational OperatorsFiles and Access MethodsBuffer ManagementDisk Space ManagementDBApplication ProgramUserDBMSEach layer need not know (or care) how other layers are implementedData AbstractionEach layer need not know how other layers organize dataWhy Use DBMS?•Program Data Independence•Controlling redundancy•Providing backup and recovery•Efficient query processing•Others: see Section 1.6Why not to use a DBMS?•Consider custom software if DBMS overhead (cost, complexity, performance) is unnecessary–Example: single user of fixed datasetSchemas and Instances•A schema describes a database–RDBMS typically store schemas in the catalog•The actual data in the DB at a particular time is the database state–The current set of all instances in the DBPeople who work with


View Full Document

UW-Milwaukee COMPSCI 557 - Introduction

Download Introduction
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Introduction and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?