List of commits:
Subject Hash Author Date (UTC)
Added questions for Quiz #4. 30d908601e9431ec0901d4001ddbf99bf14f75d0 aubert@math.cnrs.fr 2019-03-15 17:52:24
Worked on narrative in Chapter 4, mostly ER diagrams. 9e0cc5fc5a2b4087fe1191f1ba5926f87ad5a7bd aubert@math.cnrs.fr 2019-03-12 18:57:16
Updated list of known bugs. d51ff0a5bb73f09eb8d3eb7520ebb77555911e69 aubert@math.cnrs.fr 2019-03-12 17:09:22
Updating the README with the list of new files. bb35e21746d958d649b226a5857150d975d85403 aubert@math.cnrs.fr 2019-03-07 15:20:04
Adding a list of bug, and the sketch of a guide to contribute. 3a94b1fa49aee97001a45325f3f10f09475bf388 aubert@math.cnrs.fr 2019-03-07 15:14:38
Fixed the size of the images, added mention of the support of Affordable Learning Georgia. 485cf486d8d2b08427e5d02eda56d5b7a9495b38 aubert@math.cnrs.fr 2019-03-05 19:37:39
Finishing homework #5. e322bc945941083b0649557d9ad6bdbb8308c10c aubert@math.cnrs.fr 2019-03-04 15:10:15
Preparing homework 5 2b9ba64d1d36ae9f413929947cac5e6cddceb3dc aubert@math.cnrs.fr 2019-03-01 20:06:12
Some fixes and added quiz #3. d73c356f1bec9679f7123bc508c1863f8de40aef aubert@math.cnrs.fr 2019-02-28 20:34:04
Working on solutions for problems in Chapter 3. 0da378f97cea97fa2b3614f1b611a3b5bdf42632 aubert@math.cnrs.fr 2019-02-26 19:56:23
Forgot one exercise in exam. 611bbe4cc68f802bfffd7bdfc70c3433a70eceb5 aubert@math.cnrs.fr 2019-02-22 20:39:07
Quick fix c22751b88c377a40dd2c037a706409aa29ef3ce2 aubert@math.cnrs.fr 2019-02-22 20:37:21
Various editing, fixing some of the solutions in Chapter 3 and some of the exercises in Chapter 4. 1e1d8dd576329b20aa3b7f9344aaecb9d11fc6f4 aubert@math.cnrs.fr 2019-02-22 20:22:09
Added the rest of the first exam for Fall 2019. 0d5a839282b1ae6e6c07e7b12a74ff2f0f2f3b86 aubert@math.cnrs.fr 2019-02-22 20:03:02
Adding a problem and its solution, in the SQL chapter. d5bfcbb949a6acac68156a8b37d6f8d23375b1cb aubert@math.cnrs.fr 2019-02-19 19:53:27
Adding second quiz, and fixing some exercises and problems in Chapter 3. 062c9b46fad52848efbf61e08c91103c0bae4127 aubert@math.cnrs.fr 2019-02-06 20:04:16
Clarification on SQL constraints. 70e26a02aa344cc1bf009a089623be6baac79ba7 aubert@math.cnrs.fr 2019-01-29 22:46:26
Adding some minor SQL remarks + code for HW_FACULTY. 1d1b74302d29fb63c3c2bacca30533283f720997 aubert@math.cnrs.fr 2019-01-25 17:24:16
fixing small typo. 0feeb8df61e05d6d0990120628303cf31108f100 aubert@math.cnrs.fr 2019-01-22 18:23:34
Quick fix + adding macOS install instructions. ea3063e4e9225c8ce66838c8bfddb9a34aadacf8 aubert@math.cnrs.fr 2019-01-16 15:59:38
Commit 30d908601e9431ec0901d4001ddbf99bf14f75d0 - Added questions for Quiz #4.
Author: aubert@math.cnrs.fr
Author date (UTC): 2019-03-15 17:52
Committer name: aubert@math.cnrs.fr
Committer date (UTC): 2019-03-15 17:52
Parent(s): 9e0cc5fc5a2b4087fe1191f1ba5926f87ad5a7bd
Signing key:
Tree: 20e77a50f5fb14475a1bfb8400a66938dffbd13e
File Lines added Lines deleted
notes/fig/er/Bike.tex 50 0
notes/fig/er/Gym.tex 10 0
notes/lectures_notes.md 29 0
File notes/fig/er/Bike.tex added (mode: 100644) (index 0000000..5df1fda)
1 \documentclass[border=20pt]{standalone}
2 \input{template.def}
3
4 \begin{tikzpicture}[node distance=1.5cm]
5 \node[entity] (CUSTOMER) {CUSTOMER};
6 \node[attribute] [above of=CUSTOMER] {\key{Name}} edge (CUSTOMER);
7 \node[attribute] [right = .5cm of CUSTOMER] {Phone} edge (CUSTOMER);
8 %
9 \node[ident relationship] (DROPPEDBY) [left = 1.5cm of CUSTOMER] {DROPPED\_BY} edge node[above, pos=0.4] {$1$} (CUSTOMER);
10 %
11 \node[weak entity] (BIKE) [left = 1.5cm of DROPPEDBY] {BIKE} edge[total] node[above, pos=0.6]{$\cM$} (DROPPEDBY);
12 \node[attribute] [above of = BIKE] {\pkey{Dropped\_Time\_Date}} edge (BIKE);
13 \node[attribute] (Description) [left = 0.5cm of BIKE] {Description} edge (BIKE);
14 \node[attribute] [above left of = Description] {Color} edge (Description);
15 \node[attribute] [below left of = Description] {Brand} edge (Description);
16 %
17 \node[relationship] (ASSIGNEDTO) [below =1cm of CUSTOMER] {ASSIGNED\_TO} edge [total] node[right, pos=0.4] {$\cM$} (CUSTOMER);
18 \node[attribute] [right = .5cm of ASSIGNEDTO] {Level\_Of\_Satisfaction} edge (ASSIGNEDTO);
19 %
20 \node[entity] (EMPLOYEE) [below = 5cm of CUSTOMER] {EMPLOYEE} edge node[right, pos=0.4] {$1$} (ASSIGNEDTO);
21 \node[attribute] [right = .5cm of EMPLOYEE] {\key{Name}} edge (EMPLOYEE);
22 \node[multi attribute] [below = .5cm of EMPLOYEE] {Specialty} edge (EMPLOYEE);
23 %
24 \node[relationship] (REPAIREDBY) [below right =3cm of BIKE] {REPAIRED\_BY} edge node[below, pos=0.6] {$\cM$} (BIKE) edge node[below, pos=0.6] {$1$} (EMPLOYEE);
25
26
27 %\node[entity] (CUSTOMER) {CUSTOMER};
28 %
29 %
30 %
31 %\node[relationship] (SPEAKS) [below right of=CUSTOMER] {SPEAKS} edge node[right, pos=0.4] {$M$} (CUSTOMER);
32 %\node[entity] (LANGUAGE) [below right of=SPEAKS] {LANGUAGE} edge node[right, pos=0.5] {$N$} (SPEAKS);
33 %\node[attribute] (code) [left of = LANGUAGE] {\key{Code}} edge (LANGUAGE);
34 %\node[attribute] (symbol) [right of = LANGUAGE] {Name} edge (LANGUAGE);
35 %
36 %\node[relationship] (BWF) [below of = LANGUAGE] {B\_W\_F};
37 %\draw (LANGUAGE) to node[left, pos=0.6] {$N$} (BWF.west);
38 %\draw (LANGUAGE) to node[right, pos=0.6] {$M$} (BWF.east);
39 %
40 %
41 %\node[multi attribute] (color) [right =1cm of anthem] {Creator} edge (anthem);
42
43 %
44 %\node[relationship] (WIN) [above right of =LANGUAGE] {W\_IN};
45 %\draw (LANGUAGE) to node[left, pos=0.6] {$N$} (WIN);
46 %\draw (anthem) to node[right, pos=0.6] {$M$} (WIN);
47
48 \end{tikzpicture}
49
50 \end{document}
File notes/fig/er/Gym.tex added (mode: 100644) (index 0000000..86d3fbb)
1 \documentclass[border=20pt]{standalone}
2 \input{template.def}
3
4 \begin{tikzpicture}[node distance=5em]
5 \node [entity] (MEMBER) {MEMBER};
6 \node [relationship] (RESERVES) [right=of MEMBER] {RESERVES} edge node[above]{$(0,1)$} (MEMBER);
7 \node [entity] [right = of RESERVES] {EQUIPMENT} edge node[above]{$(0,1)$} (RESERVES);
8 \node [entity] [below = of RESERVES] {TIME\_SLOT} edge node[left]{$(0, \cN)$} (RESERVES);
9 \end{tikzpicture}
10 \end{document}
File notes/lectures_notes.md changed (mode: 100644) (index 1dce784..407b5b0)
... ... Apply the ER-to-Relation mapping to your ER diagram from [%D %n (%T)](#problem:c
4990 4990
4991 4991 --- ---
4992 4992
4993
4994 Problem (From E.R. diagram to Relational model -- BIKE) +.#ERtoRELBike
4995 ~
4996
4997 Consider the following E.R. diagram:
4998
4999 ![](fig/er/Bike)
5000 \
5001
5002 _Based on this diagram_, answer the following: "Is it true that …"
5003
5004
5005 <!-- bug with table -->
5006   | Yes | No |
5007 ------------ | --- | --- |
5008 "… a customer cannot drop two bikes at the exact same time and date? |   |   |
5009 "… two different customers cannot drop two different bikes at the exact same time and date? |   |   |
5010 "… an employee cannot repair two bikes at the same time? |   |   |
5011 "… a customer can be assigned to more than one employee? |   |   |
5012 "… a customer can have a bike repaired by an employee that is not assigned to them? |   |   |
5013 "… a bike can be in the database without having been dropped by a customer? |   |   |
5014 "… an employee can be asked to repair a bike without having that type of bike as one of their specialty? |   |   |
5015
5016 Then, convert that E.R. diagram to the relational model. Try to make as few assumptions as possible.
5017
5018 ---
5019
5020
4993 5021 Problem (ER-to-Relation mapping for Country) +.#ERtoRELCountry Problem (ER-to-Relation mapping for Country) +.#ERtoRELCountry
4994 5022 ~ ~
4995 5023
 
... ... Problem (From business statements to E.R. diagram -- UNIVERSITY) +.#BusinessToEr
5028 5056
5029 5057 --- ---
5030 5058
5059
5031 5060 Problem (Normal form of a CAR\_SALE relation) +.#carsale Problem (Normal form of a CAR\_SALE relation) +.#carsale
5032 5061 ~ ~
5033 5062
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