List of commits:
Subject Hash Author Date (UTC)
Added quiz #2$ ff134e831427d6e24603af76be52576928dae301 caubert 2021-03-01 19:51:12
Added missing file. d7f2b8ceb14456db8ee2857fcd2b9445bcff1f95 caubert 2021-02-16 18:54:57
Added more complex queries and triggers for HW_Vaccine. 1b133f143e9c6fec72271de28345df39689235f8 caubert 2021-02-09 20:23:30
Added project 1 and its solution. 14f03a1733c084b26dbc72c009e2b7b832ed8643 caubert 2021-02-06 21:46:04
Added project 1 and its solution. b7a31871ebccbf4caff81d9d57ed6847f4dc5543 caubert 2021-02-06 21:45:24
Added simple examples for SQL. 4ea62f6930ff19bcff8d406d95c9cd84c0f0216d caubert 2021-02-02 22:24:41
Added first project. e851058cc58a9d47ada9970f8b914e798c7d2ce7 caubert 2021-01-27 19:57:12
Few typos. 45ba15cd03fab4388439b617c656f52b2ec96319 caubert 2021-01-26 20:08:24
Small fix in code. 7860e391d0bbe82336b8f05585f846e829d181b1 caubert 2021-01-26 18:55:17
Fixed various bugs. fa76c1e469a4263d7bb7da79532abd1eedcc49be caubert 2021-01-22 19:27:01
First quizz, and fix bug with code displayed. bc9b6bb097e30186805b02dc1cdc5de2d5feabe4 caubert 2021-01-22 19:21:54
Edited the preamble. 364e709107602e163ea9365f25ccf1f5a6bb1914 caubert 2021-01-11 16:00:07
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
Commit ff134e831427d6e24603af76be52576928dae301 - Added quiz #2$
Author: caubert
Author date (UTC): 2021-03-01 19:51
Committer name: caubert
Committer date (UTC): 2021-03-01 19:51
Parent(s): d7f2b8ceb14456db8ee2857fcd2b9445bcff1f95
Signer:
Signing key:
Signing status: N
Tree: 10e1f2c0ecf492739d172c8f8fc4be1b9ec0cb1a
File Lines added Lines deleted
notes/example.md 3 1
notes/lectures_notes.md 19 1
File notes/example.md changed (mode: 100644) (index dc1e77d..9289c51)
... ... This is an example that shows how to include a UML activity diagram:
80 80
81 81 # Code Examples # Code Examples
82 82
83 By defaut, the code is colored as `SQL` code, due to the `--lua-filter filters/default-code-class.lua -M default-code-class=sqlmysql` option given to pandoc.
83 By defaut, the code is colored as `SQL` code, due to the
84 ```--lua-filter filters/default-code-class.lua -M default-code-class=sqlmysql```
85 option given to pandoc.
84 86 You can refer to <https://github.com/jgm/pandoc/issues/2104> for a discussion on that topic. You can refer to <https://github.com/jgm/pandoc/issues/2104> for a discussion on that topic.
85 87
86 88 ## Entire Code File ## Entire Code File
File notes/lectures_notes.md changed (mode: 100644) (index 1272f47..a141919)
... ... Exercise +.#
6679 6679
6680 6680 : Under what condition(s) can an attribute of a binary relationship type be migrated to become an attribute of one of the participating entity types? : Under what condition(s) can an attribute of a binary relationship type be migrated to become an attribute of one of the participating entity types?
6681 6681
6682 Exercise +.#
6682 xEercise +.#
6683 6683
6684 6684 ~ Consider the following diagram: ~ Consider the following diagram:
6685 6685
 
... ... Exercise +.#
6688 6688 #. Express the constraints represented in the diagram in plain English. #. Express the constraints represented in the diagram in plain English.
6689 6689 #. Imagine there is a "FromIP" attribute on the "OPENED_BY" relationship that stores the IP used by the user to open the ticket. Could you migrate the attribute to one of the entity? Explain how you would do it, or why it is impossible. #. Imagine there is a "FromIP" attribute on the "OPENED_BY" relationship that stores the IP used by the user to open the ticket. Could you migrate the attribute to one of the entity? Explain how you would do it, or why it is impossible.
6690 6690
6691 Eercise +.#
6692
6693 ~ Consider the following diagram:
6694
6695 ![](fig/er/ternary_president)
6696
6697 #. Express the constraints about the maximums represented in the diagram in plain English.
6698 #. Briefly explain why there are no total participation constraints on this diagram.
6699
6700
6691 6701 Exercise +.# Exercise +.#
6692 6702
6693 6703 : Suppose a "PRODUCES" relationship with an attribute "Amount" exists between a "PRODUCER" entity type and a "MOVIE" entity type, with ratio $1:M$. : Suppose a "PRODUCES" relationship with an attribute "Amount" exists between a "PRODUCER" entity type and a "MOVIE" entity type, with ratio $1:M$.
 
... ... Solution +.#
7046 7056 #. A ticket must be opened by a exactly one user, and an user can open any number of tickets (including 0). #. A ticket must be opened by a exactly one user, and an user can open any number of tickets (including 0).
7047 7057 #. We could migrate the "FromIP" attribute to the "TICKET" entity: the intuition is that while the IP adress of a user can evolve through time, the IP used at the time of creation of the ticket is unique to the ticket, and hence can become an attribute of the ticket. #. We could migrate the "FromIP" attribute to the "TICKET" entity: the intuition is that while the IP adress of a user can evolve through time, the IP used at the time of creation of the ticket is unique to the ticket, and hence can become an attribute of the ticket.
7048 7058
7059 Solution +.#
7060 ~
7049 7061
7062 #. A citizen can be the president of at most one country during a given term.
7063 A country can have only one citizen as their president during a given term.
7064 A citizen can be the president of the same country over multiple terms.
7065 #. Some citizen will never be president, some country may not have presidents (think royalty), some terms may not relate to any presidency (e.g. "3rd century BC").
7066
7067
7050 7068 Solution +.# Solution +.#
7051 7069 ~ ~
7052 7070
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