digital transmission lecture 1

Upload: jamie-berardi

Post on 26-Feb-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 Digital Transmission Lecture 1

    1/9

    2016-01-13

    1

    1

    Content of INFR 3810

    ! Design of databases.

    !

    E/R model, Design by Decomposition, (UML, ODL),

    semi-structured model such as XML.

    ! Relational algebra.

    ! SQL

    !

    Improving the performances

    2

  • 7/25/2019 Digital Transmission Lecture 1

    2/9

    2016-01-13

    2

    Syllabus

    ! Instructor office hours: Thursdays 9:30 11:00 am

    ! Skpe account: wei_classesTA Skype account:robert.burden-ta

    ! Textbook

    ! Assignments

    ! Exams

    ! late assignment policy

    3

    Evaluation Scheme1.

    Final:! 40% in total

    2.

    Homeworks:! 3 assignments

    ! Individual

    ! 30% in total

    3.

    Inclass Participations:! Hands-on exercises in almost every lecture

    !

    10% in total

    4.

    Quizzes! 20% in total

    ! 4 Blackboard quizzes + 1 in-class quiz4

  • 7/25/2019 Digital Transmission Lecture 1

    3/9

    2016-01-13

    3

    Scenarios

    ! A company wishes to store and access informationabout its employees, departments, and projects.

    5

    Scenarios

    ! Students (and Instructors) would like to know howassignment marking is progressing.

    6

  • 7/25/2019 Digital Transmission Lecture 1

    4/9

    2016-01-13

    4

    File Systems as Database

    ! We can write programs

    !

    open disk files, write to files, and close files

    !

    store data and retrieve it from the appropriate files

    7

    ...File Systems as Database

    ! What does disk files support?

    !

    Data lives a long time

    8

  • 7/25/2019 Digital Transmission Lecture 1

    5/9

    2016-01-13

    5

    ...File Systems as Database

    ! Goal: creating a new database of student marks

    ! soln: create a new file, decide on the format of data,

    write programs which access data based on known

    format

    ! Problems:

    ! data format

    !

    data is probably duplicated

    !

    data schema

    9

    ...File Systems as Database

    ! Goal: query the database to print names of studentswith A+

    ! soln: write a method to search file for students with

    mark=A+

    ! Problems:

    !

    query!

    new queries

    !

    query optimization

    10

  • 7/25/2019 Digital Transmission Lecture 1

    6/9

    2016-01-13

    6

    ...File Systems as Database

    ! Goal: Data should be free of inconsistencies (Youcannot get a B and A- in the same course)

    ! soln: make sure procedures verify data is valid

    ! Problems:

    ! integrity constraints

    11

    ...File Systems as Database

    ! Goal: Data should be secure from unauthorized users

    ! soln: use file access permissions

    ! Problems:

    !

    file access permission

    !

    file access restrictions

    12

  • 7/25/2019 Digital Transmission Lecture 1

    7/9

    2016-01-13

    7

    ...File Systems as Database

    ! Goal: Data should be usable by several usersconcurrently (Two agents book a seat on a plane

    simultaneously)

    ! soln: Custom locking code

    ! Problems:

    ! locking code

    !

    basic concurrency control

    13

    ...File Systems as Database

    ! Goal: Data invariants must be maintained (During anaccount transfer the power fails after the withdrawal

    but before the deposit)

    ! soln: no easy solution

    ! Problems:

    !

    program failure

    14

  • 7/25/2019 Digital Transmission Lecture 1

    8/9

    2016-01-13

    8

    Database Solution

    ! Use an application to which we input:

    !

    data

    !

    Constraints

    !

    arbitrary queries

    !

    access controls

    !

    modification of data

    ! transaction control

    ! The database is generic -works with anyones data orqueries -at run time

    15

    We will Study

    ! Database modeling and design

    !

    how to model enterprise data for a database.

    ! Database use and programming

    !

    how to access and manipulate data.

    26

  • 7/25/2019 Digital Transmission Lecture 1

    9/9

    2016-01-13

    9

    Appendix: XAMPP

    ! XAMPP allows you to treat your computer like a webserver, which is helpful for when you want to developoutside of a live website

    ! Installing XAMPP gains access to:" Apache" MySQL" PHP" phpMyAdmin" And a few others...

    ! Be sure to turn on Apache when you use phpmyAdmin

    Download and Install

    XAMPP! To download XAMPP, select your version from:

    " http://www.apachefriends.org/en/xampp.html

    ! Launch the installer file

    " It may be necessary to install XAMPP through Run asAdministrator on Windows

    " Unless you know what to exclude, get everything

    ! Installation will take 15 20 minutes