Entity Relationship Diagram-Introduction to Databases-Tutorial 06-Computer Science, Study Guides, Projects, Research of Introduction to Database Management Systems

Entity Relationship Diagram, Notational Note, ERD, ER Diagrams, Company Schema, Structural Constraints, Role Names, Supply Relationship, Binary Relationship, Weak Entity, Relational Database Schema, Epidemiological Database, Reactivity Test, N-ary Relationship, LAMP Projects, Tips for LAMP Projects

Typology: Study Guides, Projects, Research

2011/2012

Uploaded on 02/15/2012

arien
arien 🇺🇸

4.8

(24)

309 documents

1 / 14

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Announcements
Progress Reports (mini design document) due Tuesday
Dec 4 in class. It will be graded and count to the final
grade of the project.
Homework 3 due next Friday
Next week advanced topics: Chapters 15, 17-19, 28-29
Textbook lab files at
~joebock/Courses/557/EN_lab
Data for populating databases is in there.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Entity Relationship Diagram-Introduction to Databases-Tutorial 06-Computer Science and more Study Guides, Projects, Research Introduction to Database Management Systems in PDF only on Docsity!

Announcements

Progress Reports (mini design document) due TuesdayDec 4 in class. It will be graded and count to the finalgrade of the project.

Homework 3 due next Friday

Next week advanced topics: Chapters 15, 17-19, 28-

Textbook lab files at

~joebock/Courses/557/EN_lab

Data for populating databases is in there.

Notational Note

S

REL

T

S

REL

T

N

Cardinality Ratio Notation “Each entity of S can berelated to any number ofentities of T. An entity of Tcan be related to 1 (or zero)entities of S.”

(0,N)

Participation Notation “Each entity is S participatesin the relation either zero ofone times”

patient

ID

name

b_date

sex

HLA

HLA_A

HLA_BHLA_C

isolate

infection

date

severity

(0,N)

drugs Gene

sequence

Reactivity

test

(0,N) (0,M)

Test result

Possible ERD for Epidemiological Database

LAMP Projects

For each webpage list:

– Relative URL– Title of page– One sentence description of the page– Inputs (eg, GET parameters)– HTML Overview– English descriptions of SQL statements

Example

Title:

Roster for

URL:

/roster.php

Description:

Display roster of players for a single team

Inputs:

teamID - the ID of the team whose roster is to be shown

HTML overview:

the primary content of the page is a table

containing first name, last name, position and # of games playedfor each player on team. First and last name are links to stats.php.

Include navigation links at top of page

SQL statements: 1)

select statement on

teams

table to retrieve full name of tea

Select statement on event and player tables to retrieve info on allplayers that played for that team.

Tips for LAMP projects

Write code to authenticate w/ the DB once

– Without persistence, you’ll need to use authenticate

with the DB each time a page is requested, but youshould use the same code to do this.

– You may want to code up a DB object

See require() or include() PHP commands

Write functions for re-used HTML elements

Menu Projects

For each menu, list

– All menu options– Brief description of what option does including English

description of SQL statements