2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
Commit graph

206 commits

Author SHA1 Message Date
Martin Thoma
f706a494bf Merge pull request #19 from PeterMerkert/master
Update Aufgabe4.tex
2013-09-15 13:36:48 -07:00
Neevo Lima
babf174579 Update Aufgabe4.tex
Aufgabe 4 mit anderem Lösungsweg (der etwas näher an der Vorlesung ist) bearbeitet.

Lösung von Aufgabe b ist 24, so habe es auch viele in Facebook geschrieben.
2013-09-15 19:41:43 +02:00
Julian Schuh
eb1acec23a Fixed minot typing mistaked in Numerik Klausur 2, Aufgabe 4 2013-09-14 18:23:50 +02:00
Neevo Lima
c4c0b89d82 Update Readme.md
added me to the credits
2013-09-14 13:49:17 +02:00
Martin Thoma
8e16fd1cfa Korrekturleser 2013-09-13 22:11:25 +02:00
Martin Thoma
cc83bf34f1 added Readme 2013-09-13 22:07:02 +02:00
Martin Thoma
47071bdeca PDF hinzugefügt 2013-09-13 22:03:32 +02:00
Martin Thoma
f787493a55 Erster Schwung von Peter geTeXt 2013-09-13 21:57:07 +02:00
Martin Thoma
bae5d05c67 Aufgabe 3 sehr ausführlich erklärt 2013-09-13 18:51:12 +02:00
Martin Thoma
eb2f792e95 Peters vorschlag eingefügt 2013-09-13 18:33:56 +02:00
Martin Thoma
7784c119a2 Klausur 1, Aufgabe 5 korrigiert 2013-09-13 12:48:01 +02:00
Martin Thoma
1ee526604d Makedatei und PDF hinzugefügt 2013-09-13 11:57:34 +02:00
FelixBenzBaldas
639a28356b Das ist der erste Commit (Test), Klausur 2 2013-09-13 11:47:33 +02:00
Martin Thoma
d388c80271 Matrix in Aufgabe 3 korrigiert; Email in Readme hinterlassen 2013-09-12 21:52:24 +02:00
Martin Thoma
95db21f3db Aufgabe 5 bearbeitet 2013-09-12 18:29:18 +02:00
Martin Thoma
95423ec77a fixed typo 2013-09-12 16:14:33 +02:00
Martin Thoma
7f7b868dd2 fixed Aufgabe 2 2013-09-12 10:48:23 +02:00
Martin Thoma
5d12b1f6ba sugar 2013-09-12 10:38:11 +02:00
Martin Thoma
b2870f7dce Peters Änderungsvorschläge eingepflegt 2013-09-11 17:27:22 +02:00
Martin Thoma
33ba7ff981 Musterlösung angefangen 2013-09-10 05:50:43 +02:00
Martin Thoma
060ee0828a misc 2013-09-07 14:48:15 +02:00
Martin Thoma
2a6fb8abc9 misc 2013-09-01 17:40:24 +02:00
Martin Thoma
3b2bfde37a added section about Elementarteiler 2013-09-01 14:22:33 +02:00
Martin Thoma
943a5c4aee Legendre-Symbol 2013-09-01 11:01:24 +02:00
Martin Thoma
a28f787179 added 'custom envirnoment' example 2013-08-25 16:06:02 +02:00
Martin Thoma
a411fde3ec added compiled pdf 2013-08-22 22:09:51 +02:00
Martin Thoma
94da631d55 EAZ Entwurf begonnen 2013-08-22 22:06:19 +02:00
Martin Thoma
085044268e corrected answer 2013-07-30 20:39:07 +02:00
Martin Thoma
b55ca17158 removed missing file 2013-07-30 13:15:48 +02:00
Martin Thoma
187a7f06bb added changes of Stefan again 2013-07-30 13:15:00 +02:00
Martin Thoma
c5127f1507 Merge pull request #13 from niklasb/patch-1
Update musterloesung-db-2012-09-24.tex
2013-07-30 04:13:12 -07:00
Stefan Koch
5a93365187 Not an alternative, but introductory work
This was not intended to be an alternative, but for explanation on how to begin such a query. This one only returns all required friendships including those already existing.

Then better delete it completely.
2013-07-30 13:03:38 +02:00
Niklas Baumstark
099be06d7f Update musterloesung-db-2012-09-24.tex 2013-07-30 13:01:45 +02:00
Martin Thoma
3bb436e81a formattierung 2013-07-30 13:00:26 +02:00
Stefan Koch
fe79dd4081 Korrektur + Ergänzung
Korrektur: person1 wird vom Subquery auch benötigt wegen späterem WHERE-Vergleich
Ergänzung: SQLite konnte kein EXCEPT, daher hab ich es mit NOT EXISTS nachgebaut, siehe auch http://stackoverflow.com/questions/3831969/sqlite-delete-results-from-select-with-except
2013-07-30 12:56:04 +02:00
Martin Thoma
2ccc6cb416 formatting 2013-07-30 12:52:22 +02:00
Stefan Koch
c1d93b86a1 Added further explanation 2013-07-30 12:42:12 +02:00
Martin Thoma
cc365eade0 compiled PDF 2013-07-30 11:20:22 +02:00
Stefan Koch
097d360423 MAX in WHERE not possible
You cannot use MAX() in a WHERE clause, instead use a subquery.

The ORDER BY is also unneeded, because we only select the maximum. So what to order, there is only one number (even if multiple entries with the same number).
2013-07-30 11:18:13 +02:00
Martin Thoma
d7e7613c30 textsetzung 2013-07-30 11:17:53 +02:00
Stefan Koch
756fee46ef left join sufficient
A LEFT (OUTER) JOIN is totally sufficient here, you do not want to have one Berater NULL with about 10 customers (because some customers do not have a Berater).

Moreover, when using the altered version as expected (i.e. the one with Kunden2Berater table) there is no column Kunden.berater_id anymore. You thus have to join Kunden2Berater.

I have NOT checked the COUNT throroughly, but according to my understand you will have to count on one of the Kunden2Berater columns, because COUNT() will ignore NULL columns and this is what we want. If LEFT JOIN returned a row where there are no columns on the right side, the count shall give NULL. Yet, I have to admit that I do not understand COUNT() too well. The DISTINCT is then unneeded, because we GROUP BY berater_id and the kunden_id for each berater itself will already be unique. So please do not take the COUNT statement for granted now, it's untested. http://www.techonthenet.com/sql/count.php
2013-07-30 11:14:45 +02:00
Martin Thoma
4b52753c61 removed TODO 2013-07-30 11:09:59 +02:00
Martin Thoma
b9a6642d0e compiled PDF 2013-07-30 11:08:14 +02:00
Stefan Koch
8f0b025fca corrected SQL statement
- it's totally uneeded to join the FROM table once again
- I do not know about specifying multiple tables in one JOIN, it might be wrong, but at least it's (same as using CROSS JOIN syntax with multiple FROM tables) at least bad behaviour
- omitting the ON clause when using JOIN is afaik not optional in the SQL standard. MySQL allows it, but then uses CROSS JOIN. Here you either want NATURAL JOIN or JOIN with ON clause. I prefer JOIN with explicit ON clauses all the time (because I never call my columns Berater.berater_id, but Berater.id and in foreign key definitions then Foo.berater_id), but since in the lectures NATURAL JOIN was so often prefered, I thought about using that. In my own exam, I will always use ON clause, because I am more used to that and I will not run into troubles if there are two columns with the same name, which is exactly the problem here. There are two tables with column "name". The second NATURAL JOIN would fail, because it would try to not only JOIN Kunden2Berater.kunden_id with Kunden.kunden_id, but also Berater.name with Kunden.name.
Thus, I'd recommend to always use explicit ON statements.
2013-07-30 11:05:00 +02:00
Martin Thoma
62f30e1a58 Musterloesung existiert bereits 2013-07-29 17:22:55 +02:00
Martin Thoma
50874a1066 Merge branch 'master' of github.com:MartinThoma/LaTeX-examples 2013-07-28 16:13:50 +02:00
Martin Thoma
2560f06f6b definition von strict 2013-07-28 16:13:27 +02:00
Martin Thoma
cb3f1a482f Mit Peter und Nilan nochmals korrekturgelesen. 2013-07-28 15:55:54 +02:00
Martin Thoma
31742592bd Merge pull request #4 from mcwise/patch-1
Fixed a copy paste errors and filtered out all edges with form (x,x)
2013-07-27 11:10:04 -07:00
Nilan
5eae2ce100 Ist von mir und Stefan, nicht Stephan :P 2013-07-27 19:48:23 +02:00