Вы находитесь на странице: 1из 9

2016-01-13

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

2016-01-13

Syllabus
Instructor office hours: Thursdays 9:30 11:00 am
Skpe account: wei_classes TA Skype account:
robert.burden-ta
Textbook
Assignments
Exams
late assignment policy

Evaluation Scheme
1.

Final:

2.

Homeworks:

3.

3 assignments
Individual
30% in total

Inclass Participations:

4.

40% in total

Hands-on exercises in almost every lecture


10% in total

Quizzes

20% in total
4 Blackboard quizzes + 1 in-class quiz
4

2016-01-13

Scenarios
A company wishes to store and access information
about its employees, departments, and projects.

Scenarios
Students (and Instructors) would like to know how
assignment marking is progressing.

2016-01-13

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

...File Systems as Database


What does disk files support?
Data lives a long time

2016-01-13

...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 students
with A+
soln: write a method to search file for students with
mark=A+
Problems:
query
new queries
query optimization
10

2016-01-13

...File Systems as Database


Goal: Data should be free of inconsistencies (You
cannot 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

2016-01-13

...File Systems as Database


Goal: Data should be usable by several users
concurrently (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 an
account transfer the power fails after the withdrawal
but before the deposit)
soln: no easy solution
Problems:
program failure

14

2016-01-13

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 or


queries -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

2016-01-13

Appendix: XAMPP
XAMPP allows you to treat your computer like a web
server, which is helpful for when you want to develop
outside 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 as


Administrator on Windows
Unless you know what to exclude, get everything

Installation will take 15 20 minutes

Вам также может понравиться