List of commits:
Subject Hash Author Date (UTC)
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
Added example for MAX and NULL values. b82a496a5ffbcecaf2c5851f18d1b08ce8732623 aubert@math.cnrs.fr 2020-09-10 13:14:13
Changed SQL code formatting. 6c3cad5a2545f46ab113f7df7a83457857d82ed8 aubert@math.cnrs.fr 2020-09-09 17:04:55
Cleaned code. 5bdb4faed3a83b81257734f1e1aced2890783f04 aubert@math.cnrs.fr 2020-09-03 21:35:41
Added the first project. 564a02887933f2395bc40d7d8a10833f657659fd aubert@math.cnrs.fr 2020-08-28 22:34:08
Week 2 edits, added quiz #1, couple of fixes, replaced single quote with double quotes. 3c9942731678900122088356db3a2cbabd99b9be aubert@math.cnrs.fr 2020-08-27 19:00:13
Added ressource for makefile. 7696c44bca707646530a7dbb71bf2e05badaa306 aubert@math.cnrs.fr 2020-08-03 16:00:23
Crystal's final edits. 714e3030423a836c4ba07890f9aa5e45f58ad15a aubert@math.cnrs.fr 2020-05-21 17:43:26
Converted an image into a figure (Movie example). c55e61ed5d11631e908d99b14ef10a0a0247bda0 aubert@math.cnrs.fr 2020-05-20 20:58:41
Re-formatted SQL code. 915442a1ba4d8baa120343f98de5ee39d4ac45f6 aubert@math.cnrs.fr 2020-05-18 15:52:06
Fixed Known_bugs 5900c572928ec3b8c98c82fe4e95ebbe9aeee6c3 aubert@math.cnrs.fr 2020-05-15 18:19:36
Fixed contrib and enriched example. 04864c0ee2d4fa77b4e681ebf8049c4642bf1e67 aubert@math.cnrs.fr 2020-05-15 18:17:22
Fixed formatting mistake. 948a87c75b5d9aa8317feb5a0859d4efc23e95d6 aubert@math.cnrs.fr 2020-05-15 17:58:40
Commit 98097fb11558c08bad630fb3351f99ceb6777de7 - Added simple example to test if semicolon are important in SQL querries.
Author: aubert@math.cnrs.fr
Author date (UTC): 2020-11-03 14:11
Committer name: aubert@math.cnrs.fr
Committer date (UTC): 2020-11-03 14:11
Parent(s): a8daf1768395aa296bf0dd05783dd53c757d5d19
Signer:
Signing key:
Signing status: N
Tree: caa5ae4d50e8e481f6fce3349b70a7f857cd1051
File Lines added Lines deleted
notes/code/java/TestingSemicolon.java 51 0
notes/fig/rel_mod/pet_and_dish.tex 77 0
File notes/code/java/TestingSemicolon.java added (mode: 100644) (index 0000000..a525f76)
1 // code/java/TestingSemicolon.java
2
3 // java.util.Scanner is an API to read from the keyboard.
4 import java.sql.*;
5 import java.util.Scanner;
6
7 public class TestingSemicolon {
8 public static void main(String[] args) {
9 try (Connection conn =
10 DriverManager.getConnection(
11 "jdbc:mysql://localhost:3306/?user=testuser&password=password"
12 + "&allowMultiQueries=true");
13 Statement stmt =
14 conn.createStatement(); ) {
15 stmt.addBatch("DROP SCHEMA IF EXISTS HW_Testing_Semicolon");
16 stmt.addBatch("CREATE SCHEMA HW_Testing_Semicolon");
17 stmt.addBatch("USE HW_Testing_Semicolon");
18 stmt.addBatch("CREATE TABLE Test(id INT)");
19 stmt.executeBatch();
20 stmt.executeUpdate("INSERT INTO Test VALUES(1)"); // Ok
21 stmt.executeUpdate("INSERT INTO Test VALUES(1);"); // Ok
22 stmt.executeUpdate("INSERT INTO Test VALUES(1); INSERT INTO Test VALUES(1)"); // Ok
23 stmt.executeUpdate("INSERT INTO Test VALUES(1); INSERT INTO Test VALUES(1);"); // Ok
24 }
25 catch (SQLException ex) {
26 ex.printStackTrace();
27 }
28
29 try (Connection conn =
30 DriverManager.getConnection(
31 "jdbc:mysql://localhost:3306/?user=testuser&password=password"); // without + "&allowMultiQueries=true"
32 Statement stmt =
33 conn.createStatement(); ) {
34 stmt.addBatch("DROP SCHEMA IF EXISTS HW_Testing_Semicolon");
35 stmt.addBatch("CREATE SCHEMA HW_Testing_Semicolon");
36 stmt.addBatch("USE HW_Testing_Semicolon");
37 stmt.addBatch("CREATE TABLE Test(id INT)");
38 stmt.executeBatch();
39 stmt.executeUpdate("INSERT INTO Test VALUES(1)"); // Ok
40 stmt.executeUpdate("INSERT INTO Test VALUES(1);"); // Ok
41 // stmt.executeUpdate("INSERT INTO Test VALUES(1);INSERT INTO Test VALUES(1)"); // Not Ok
42 // stmt.executeUpdate("INSERT INTO Test VALUES(1);INSERT INTO Test VALUES(1);"); // Not Ok
43
44 }
45 catch (SQLException ex) {
46 ex.printStackTrace();
47 }
48
49
50 }
51 }
File notes/fig/rel_mod/pet_and_dish.tex added (mode: 100644) (index 0000000..a8a701e)
1 \documentclass[border=20pt]{standalone}
2 \input{template.def}
3
4 % FRIEND(Name (PK), Bonus, Element)
5 % DISH(Name (PK), FRIEND (FK to FRIEND.Name), XP, LVL)
6 % RECIPE(Name (PK), Bonus, Possessed-By (FK to DISH.Name))
7 % PET(Name (PK), XP)
8 % COMPLETED-BY(DISH (PK, FK to DISH.Name), PET (PK, FK to PET.Name))
9 % SPECIAL-ITEM(Name (P), PET (FK to PET.Name))
10
11 \Frame(0,0){1}[FRIEND]{
12 Name/PK};
13
14 \Frame(0,2.5){2}[CONTRIBUTION]{
15 Contributor/PK,
16 Dish/PK};
17
18 \Frame(0,5){3}[DISH]{
19 Name/PK};
20
21
22 \Frame(8,0){4}[PET]{
23 Owner/PK,
24 Name/PK,
25 Gender/A};
26
27 \Frame(8,2.5){4}[TASTE]{
28 PetOwner/PK,
29 PetName/PK,
30 Dish/PK};
31
32 \Frame(8,5){5}[RECIPE]{
33 Dish/PK,
34 Ingredient/PK};
35
36 \draw[FK]
37 (Name1)-- ++(0,-.55) --
38 ++(-1.3,0)
39 -- ++(0,2.5) --
40 ++(1.7, 0) -- (Contributor2);
41
42 \draw[FK]
43 (Name3)-- ++(0,-.55) --
44 ++(2.5,0)
45 -- ++(0,-2.5) --
46 ++(-.65, 0) -- (Dish2);
47
48 \draw[FK]
49 (Name3)-- ++(0,-.55) --
50 ++(2.5,0)
51 -- ++(0,-2.5) --
52 ++(-.65, 0) -- (Dish5);
53 %
54 %
55 %\draw[FK] % From Possessed-By3 to Name2
56 %(Name2)++(-0.1,0) -- ++(0,-.75) -- ++(4.2,0) coordinate (inter)
57 %-- (Possessed-By3 -| inter) -- ++(0,-0.4) coordinate (inter)
58 %-- (Possessed-By3 |- inter) --++(0,0.5);
59 %
60 %
61 %\draw[FK] % From DISH5 to Name2
62 %(Name2)++(0.1,0) -- ++(0,-.55) -- ++(3.5,0) coordinate (inter)
63 %-- (DISH5|- inter) --++(0,0.55);
64 %
65 %
66 %\draw[FK] % From PET5 to Name4
67 %(Name4)++(-0.1,0) -- ++(0,-.7) -- ++(2.6,0) coordinate (inter)
68 %-- (PET5 -| inter) -- ++(0,-0.4) coordinate (inter)
69 %-- (PET5 |- inter) --++(0,0.4);
70 %
71 %\draw[FK] % From PET6 to Name4
72 %(Name4)++(0.1,0) -- ++(0,-.55) -- ++(2.6,0) coordinate (inter)
73 %-- (PET6 -| inter) -- ++(0,-0.2) coordinate (inter)
74 %-- (PET6 |- inter) --++(0,0.3);
75
76 \end{tikzpicture}
77 \end{document}
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