List of commits:
Subject Hash Author Date (UTC)
Started to edit notes and add final exam from fall 2020. bb747e27ce08ce17e91913e947614e3057580995 caubert 2021-01-06 22:26:07
Integrated the include-link feature of pandoc-include-code. 3a8f9ededdaa1f05d526742f5d447aaa017e1d1b caubert 2021-01-04 22:52:18
Fixed citeproc. 0d90c7e60e4a4474fd7ded03bb6526ea63a57253 aubert@math.cnrs.fr 2020-12-27 21:33:48
(Finally) updated pandoc and pandoc-numbering. 127c1964a0732b49e14b46fdb0d3f8446e3892d0 aubert@math.cnrs.fr 2020-12-27 21:14:31
Fixed url in comments, avoid them being wrapped. 09a6a78479f24b5749605a4cb7136f8cfbf57d30 aubert@math.cnrs.fr 2020-12-18 18:55:50
Added comments on procedures from code f3e9c2abac41d5de1c7473867c4f688051dec928 aubert@math.cnrs.fr 2020-12-01 15:46:53
Updated mysql connector 228d86db5498aae94a4d162272fa03a84ae9c532 aubert@math.cnrs.fr 2020-12-01 15:09:46
Updated java beautifier 30f4a79f2d911cd0b6a24c31f968f0d23620965f aubert@math.cnrs.fr 2020-12-01 15:07:50
Worked on procedure example from java 998ea14119a5a3f88efc4b0a126177e85151e43d aubert@math.cnrs.fr 2020-12-01 15:06:47
Brief example of calling a procedure from a program. 1054c9d5c83fb956bdd0b8d884d5ce2c8a9a640e aubert@math.cnrs.fr 2020-11-30 19:00:45
Added solution to second exam d8f62ded96991885a96d561db587988d453a28c8 aubert@math.cnrs.fr 2020-11-05 20:35:50
Quick fix on testing semicolons. 7f48d88d2ed69213d803a7736df3d50330cfecd1 aubert@math.cnrs.fr 2020-11-03 14:14:06
Added simple example to test if semicolon are important in SQL querries. 98097fb11558c08bad630fb3351f99ceb6777de7 aubert@math.cnrs.fr 2020-11-03 14:11:22
Updated spots to https. a8daf1768395aa296bf0dd05783dd53c757d5d19 aubert@math.cnrs.fr 2020-10-05 16:18:44
Adding quiz #2 98e0ae5b8ce766524f60c91adb1040235e1bbf31 aubert@math.cnrs.fr 2020-10-02 19:00:15
Added exam 1 e2f62ae4bf26fcc4b86e8665060ccf3918e7abeb aubert@math.cnrs.fr 2020-09-24 12:51:36
worked on solution to first exam. b13ad99dd895f124df1b642fd990071fc09db294 aubert@math.cnrs.fr 2020-09-23 17:44:01
Added solution to first problem. 0948cee47ed78dc115fd69c7bcf96a312dd3162f aubert@math.cnrs.fr 2020-09-18 21:43:00
Added solution to problem 2 of Exam #1. 7ad20b3c0025a4de3fa00729de570c6fe9176773 aubert@math.cnrs.fr 2020-09-18 21:34:19
Added solution to project 1. de427d78745593ab53dc70e7129b67fee1d4489c aubert@math.cnrs.fr 2020-09-10 19:04:45
Commit bb747e27ce08ce17e91913e947614e3057580995 - Started to edit notes and add final exam from fall 2020.
Author: caubert
Author date (UTC): 2021-01-06 22:26
Committer name: caubert
Committer date (UTC): 2021-01-06 22:26
Parent(s): 3a8f9ededdaa1f05d526742f5d447aaa017e1d1b
Signer:
Signing key:
Signing status: N
Tree: 70f3aeb41a505cf18a22140f2827dca0bec0ba4a
File Lines added Lines deleted
notes/fig/er/accident_bis.tex 26 0
notes/latex/packages.sty 2 0
notes/lectures_notes.md 30 0
File notes/fig/er/accident_bis.tex added (mode: 100644) (index 0000000..c1cff85)
1 \documentclass[border=20pt]{standalone}
2 \input{template.def}
3
4 \begin{tikzpicture}[node distance=7em]
5 \node[entity] (person) {Person};
6 \node[attribute] (pid) [left of=person] {\key{id}} edge (person);
7 \node[attribute] (name) [above left of=person] {Name} edge (person);
8 \node[attribute] (address) [below left of=person] {Address} edge (person);
9
10 \node[relationship] (owns) [above right of=person] {Owns} edge node[above, sloped]{$\c1$} (person);
11 \node[entity] (car) [above right of=owns] {Car} edge[total] node[above, sloped]{$\cM$} (owns);
12 \node[relationship] (co-owns) [above = 1.9cm of person] {Co-Owns} edge node[left]{$\cM$} (person) edge node[above, sloped]{$\cM$} (car);
13 \node[attribute] (licence) [above left of=car] {\key{VIN}} edge (car);
14 \node[attribute] (model) [above of =car] {ModelYear} edge (car);
15 \node[attribute] (make) [above right of =model] {Model} edge (model);
16 \node[attribute] (year) [above left of =model] {Year} edge (model);
17
18 \node[relationship] (accident) [right = 5cm of person] {Accident} edge node[above, sloped]{$M$} node[above, pos=0.2]{driver} (person);
19 \node[attribute] (time) [right of = accident] {Time} edge (accident);
20 \node[attribute] (place) [below right of = accident] {Place} edge (accident);
21 \node[attribute] (damage_amount) [above right of = accident] {Damage\_Amount} edge (accident);
22
23 \draw (car) edge node[above, sloped]{$N$} (accident);
24 \end{tikzpicture}
25
26 \end{document}
File notes/latex/packages.sty changed (mode: 100644) (index bd1b9b9..ebf9f86)
34 34 pdfcopyright={Creative Commons Attribution 4.0 International License} pdfcopyright={Creative Commons Attribution 4.0 International License}
35 35 } }
36 36 } }
37
38 \setlength{\cftproblemnumwidth}{2.6em} % Tweaking the space between problems' number and title in the TOC generated by pandoc-numbering thanks to tocloft.
File notes/lectures_notes.md changed (mode: 100644) (index ee220af..ee49d1c)
... ... The quizzes are not indicated, but were generally a mix of up to five exercises
121 121 - [%D %n (%T)](#problem:grade_report) - [%D %n (%T)](#problem:grade_report)
122 122 - [%D %n (%T)](#problem:cellphones) - [%D %n (%T)](#problem:cellphones)
123 123 - Five small exercises about [data base application](#exercises-4). - Five small exercises about [data base application](#exercises-4).
124 - Final:
125 - [%D %n (%T)](#problem:accident-er)
124 126
125 127 ### Spring 2020 {-} ### Spring 2020 {-}
126 128
 
... ... Problem (From business statements to ER diagram -- UNIVERSITY) +.#BusinessToEr
7063 7065
7064 7066 --- ---
7065 7067
7068 Problem (Studying an Accident ER Diagram) +.#accident-er
7069 ~
7070 Have a look at the diagram below:
7071
7072 ![](fig/er/accident_bis)
7073 \
7074
7075 The assumption is that a car has exactly one (primary) owner, but can additionally have multiple co-owners, and that the "Accident" relationship gathers information about who was driving which car when accident happened, along with some other information about the accident.
7076
7077 #. Answer the following short questions, justifying your answers:
7078
7079 #. Can this model be used to determine if the driver involved in the accident was owning the car?
7080 #. What could justify having the "Address" attribute being composite?
7081 #. Is it possible to determine if multiple cars were involved in the same accident?
7082
7083 #. Convert the diagram to a relational model.
7084
7085 #. We want to edit the ER diagram to be able to record multiple quotes per accident instead of having a single "Damage_Amount".
7086 To do that, we would like to create a "Quote" weak entity with attributes for the amount and the contact information of the garage who wrote it.
7087 Your task is to
7088 #. Have Accident becomes an entity,
7089 #. Create a relationship between Accident, Car and Person to convey the information that was previously conveyed by the Accident relationship,
7090 #. Create a weak entity Quote with the required attributes and relationship.
7091
7092 You should draw only the part of the ER diagram that will change, no need to copy all of it.
7093
7094 ---
7095
7066 7096
7067 7097 Problem (Normal form of a CAR\_SALE relation) +.#carsale Problem (Normal form of a CAR\_SALE relation) +.#carsale
7068 7098 ~ ~
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/caubert/CSCI_3410

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/caubert/CSCI_3410

Clone this repository using git:
git clone git://git.rocketgit.com/user/caubert/CSCI_3410

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main