File notes/lectures_notes.md changed (mode: 100644) (index 477d8f5..cdee679) |
... |
... |
Apply the ER-to-Relation mapping to your ER diagram from the previous problem. |
4441 |
4441 |
|
|
4442 |
4442 |
--- |
--- |
4443 |
4443 |
|
|
4444 |
|
Problem (ER-to-Relation mapping for Country)+ .# |
|
|
4444 |
|
Problem (ER-to-Relation mapping for Country) + .# |
4445 |
4445 |
~ |
~ |
4446 |
4446 |
|
|
4447 |
4447 |
Consider the following E.R. schema: |
Consider the following E.R. schema: |
|
... |
... |
Problem (From business statement to dependencies) +.#bike |
4523 |
4523 |
|
|
4524 |
4524 |
--- |
--- |
4525 |
4525 |
|
|
4526 |
|
Problem (Normalization)+.# |
|
|
4526 |
|
Problem (Normalization) +.# |
4527 |
4527 |
~ |
~ |
4528 |
4528 |
|
|
4529 |
|
<!-- bug with table --> |
|
4530 |
4529 |
Consider the relations $R$ and $T$ below, and their functional dependencies (on top of the one induced by the primary keys): |
Consider the relations $R$ and $T$ below, and their functional dependencies (on top of the one induced by the primary keys): |
4531 |
4530 |
|
|
|
4531 |
|
<!-- bug with table --> |
4532 |
4532 |
| |
| |
4533 |
4533 |
| :---: | |
| :---: | |
4534 |
4534 |
| R(E͟v͟e͟n͟t͟I͟d͟, E͟m͟a͟i͟l͟, Time, Date, Location, Status) | |
| R(E͟v͟e͟n͟t͟I͟d͟, E͟m͟a͟i͟l͟, Time, Date, Location, Status) | |
|
... |
... |
Normalize the relations to 2NF and 3NF. Show all relations at each stage (2NF an |
4545 |
4545 |
|
|
4546 |
4546 |
--- |
--- |
4547 |
4547 |
|
|
4548 |
|
Problem (Normal Form of the BOOK relation)+.#book |
|
4549 |
|
~ |
|
|
4548 |
|
Problem (Normal Form of the BOOK relation) +.#book |
|
4549 |
|
~ |
4550 |
4550 |
|
|
4551 |
4551 |
Consider the following relation for published books: |
Consider the following relation for published books: |
4552 |
4552 |
|
|
|
... |
... |
Problem (From UML to Relational Model -- DRIVER) +.#UMLtoRELDriver |
4596 |
4596 |
|
|
4597 |
4597 |
--- |
--- |
4598 |
4598 |
|
|
4599 |
|
Problem (Normal Form of the CONTACT Relation)+.# |
|
|
4599 |
|
Problem (Normal Form of the CONTACT Relation) +.# |
4600 |
4600 |
~ |
~ |
4601 |
4601 |
|
|
4602 |
4602 |
Consider the relation |
Consider the relation |
|
... |
... |
Give the relations, their primary keys, and functional dependencies for both ste |
4619 |
4619 |
|
|
4620 |
4620 |
--- |
--- |
4621 |
4621 |
|
|
4622 |
|
Problem (CONSULTATION Relation: Justification, Primary Key and Normal Form)+.#consultation |
|
|
4622 |
|
Problem (CONSULTATION Relation: Justification, Primary Key and Normal Form) +.#consultation |
4623 |
4623 |
~ |
~ |
4624 |
4624 |
|
|
4625 |
4625 |
Consider the relation |
Consider the relation |
|
... |
... |
Normalize it to the third normal form if necessary. |
4643 |
4643 |
|
|
4644 |
4644 |
--- |
--- |
4645 |
4645 |
|
|
4646 |
|
Problem (From E.R. to Relational Schema and UML class diagram -- CAR\_INFO)+.#carinfo |
|
|
4646 |
|
Problem (From E.R. to Relational Schema and UML class diagram -- CAR\_INFO) +.#carinfo |
4647 |
4647 |
~ |
~ |
4648 |
4648 |
|
|
4649 |
4649 |
Consider the following E.R. schema for the CAR\_INFO database: |
Consider the following E.R. schema for the CAR\_INFO database: |
|
... |
... |
Problem (From E.R. to Relational Schema and UML class diagram -- CAR\_INFO)+.#ca |
4658 |
4658 |
|
|
4659 |
4659 |
--- |
--- |
4660 |
4660 |
|
|
4661 |
|
Problem (Discovering MySQL Workbench)+.#mysqlw |
|
4662 |
|
~ |
|
|
4661 |
|
Problem (Discovering MySQL Workbench) +.#mysqlw |
|
4662 |
|
~ |
4663 |
4663 |
|
|
4664 |
4664 |
In this exercise, we will install and explore the basic functionalities of MySQL Workbench, which is a cross-platform, open-source, and free graphical interface for database design. |
In this exercise, we will install and explore the basic functionalities of MySQL Workbench, which is a cross-platform, open-source, and free graphical interface for database design. |
4665 |
4665 |
|
|
|
... |
... |
Problem (Discovering MySQL Workbench)+.#mysqlw |
4674 |
4674 |
|
|
4675 |
4675 |
--- |
--- |
4676 |
4676 |
|
|
4677 |
|
Problem (Using MySQL Workbench's Reverse Engineering)+.#reverseeng |
|
|
4677 |
|
Problem (Using MySQL Workbench's Reverse Engineering) +.#reverseeng |
4678 |
4678 |
~ |
~ |
4679 |
4679 |
|
|
4680 |
4680 |
*This problem requires you to have successfully completed @problem:mysqlw and @problem:UMLtoRELDriver.* |
*This problem requires you to have successfully completed @problem:mysqlw and @problem:UMLtoRELDriver.* |
|
... |
... |
Problem (From Business Statements to Dependencies -- KEYBOARD) +.#BusinessToDepe |
4707 |
4707 |
|
|
4708 |
4708 |
--- |
--- |
4709 |
4709 |
|
|
4710 |
|
Problem (Reverse Engineering by Hand)+.#Reverse-Engineering-ACTOR |
|
|
4710 |
|
Problem (Reverse Engineering by Hand) +.#Reverse-Engineering-ACTOR |
4711 |
4711 |
~ |
~ |
4712 |
4712 |
|
|
4713 |
4713 |
Look at the following relational model, and "reverse-engineer" it to obtain an E.R. diagram: |
Look at the following relational model, and "reverse-engineer" it to obtain an E.R. diagram: |
|
... |
... |
Solution to [%D %n (%T)](#problem:carinfo) |
4819 |
4819 |
PERSON(Id (PK), Name, Street, City, Seat (FK to CAR.Vin), Position) |
PERSON(Id (PK), Name, Street, City, Seat (FK to CAR.Vin), Position) |
4820 |
4820 |
CAR(Vin (PK), Make, Year, Brand, Driver (FK to PERSON.Id)) |
CAR(Vin (PK), Make, Year, Brand, Driver (FK to PERSON.Id)) |
4821 |
4821 |
CAR INSURANCE(Insured Car (PK, FK to CAR.Vin), Policy Number (PK), Covered Amount, Company Name) |
CAR INSURANCE(Insured Car (PK, FK to CAR.Vin), Policy Number (PK), Covered Amount, Company Name) |
4822 |
|
](fig/rel_mod/Car_Info) |
|
|
4822 |
|
](fig/rel_mod/CAR_INFO) |
|
4823 |
|
\ |
4823 |
4824 |
|
|
4824 |
4825 |
Note that, during the coversion, we had to make "Insured Car" part of the primary key of CAR INSURANCE. |
Note that, during the coversion, we had to make "Insured Car" part of the primary key of CAR INSURANCE. |
4825 |
4826 |
|
|