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

216 commits

Author SHA1 Message Date
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
Nilan
8d0fccde3a Fixed a copy paste errors and filtered out all edges with form (x,x)
Before, there were edges in this form (x,x) included but they shouldn't be included.
2013-07-27 19:42:28 +02:00
Martin Thoma
fe6543ad0b db getext 2013-07-27 17:14:28 +02:00
Martin Thoma
a430494180 misc 2013-07-27 15:29:03 +02:00
Martin Thoma
29d5c11e84 misc 2013-07-27 15:28:36 +02:00
Martin Thoma
58786aaad4 db-systeme 2013-07-27 13:58:39 +02:00
Martin Thoma
e847d4c17d updated cv and fixed typo 2013-07-01 21:28:25 +02:00
Martin Thoma
61d7185054 misc 2013-06-11 21:59:02 +02:00
Martin Thoma
f087df39be si-units example: minor changes 2013-05-31 09:48:53 +02:00
Martin Thoma
e9574df049 misc 2013-05-18 13:44:47 +02:00
Martin Thoma
78b9ac5883 some more steps to completion of this proof 2013-05-18 13:40:50 +02:00
Martin Thoma
7847744f27 proof that we dont move too much 2013-05-18 12:49:47 +02:00
Martin Thoma
24301f9450 added draft for proof of correctnes for pogo algorithm 2013-05-18 11:20:00 +02:00
Martin Thoma
42311597c0 minor 2013-05-13 20:37:11 +02:00
Martin Thoma
ce206d0d67 minimal example works now :-) 2013-05-13 20:22:31 +02:00
Martin Thoma
e21e49007f added error message 2013-05-12 17:28:55 +02:00
Martin Thoma
74ccb400c2 biblatex-mwe added 2013-05-12 17:27:15 +02:00
Martin Thoma
3ee28d093b removed unnecessary parbox 2013-05-12 16:04:42 +02:00
Martin Thoma
545386cf75 formatting 2013-05-12 15:39:37 +02:00
Martin Thoma
9ddd6101eb Internetadressen hinzugefügt; Quellen hinzugefügt 2013-05-12 15:28:03 +02:00
Martin Thoma
d76640d4ea added more CSV / function plotting examples 2013-05-11 14:05:37 +02:00
Martin Thoma
530ba6bb87 added CSV print table example 2013-05-11 13:34:00 +02:00
Martin Thoma
e24fddc630 added PDF document 2013-05-08 17:40:54 +02:00
Martin Thoma
609c0b6bc2 Leerzeichen, Referenzen, Pfeile, Literaturverzeichnis 2013-05-08 17:39:50 +02:00
Martin Thoma
bd9e17dd2d minor 2013-05-07 22:37:17 +02:00
Martin Thoma
7e2693dd5e facharbeit hinzugefügt 2013-05-07 22:36:03 +02:00
Martin Thoma
6ece9958fd misc 2013-05-06 10:03:31 +02:00
Martin Thoma
c510d07d84 added rendered example 2013-05-06 09:51:51 +02:00
Martin Thoma
23b06aab8e added siunitx example 2013-05-06 09:51:19 +02:00
Martin Thoma
01f5f2ecf9 added link to necessary font 2013-05-02 09:56:06 +02:00
Martin Thoma
b72f7bb089 zahl korrigiert 2013-04-25 09:07:16 +02:00
Martin Thoma
7f6f4ccbcc used better image placeholder 2013-04-25 00:44:32 +02:00
Martin Thoma
bac0f0b33a English -> Deutsch; Hinweis zu Spalte 'Kommentar' 2013-04-25 00:39:13 +02:00
Martin Thoma
a4eeaf4cbc Meine Daten in erste Zeile eingetragen; Zielperson in Brief 2013-04-25 00:33:57 +02:00
Martin Thoma
89042896c8 first step: only german(y) 2013-04-25 00:16:40 +02:00
Martin Thoma
d49f32e1de added pdf 2013-04-25 00:04:41 +02:00
Martin Thoma
e0510feeb4 added milgrams small world 2013-04-24 23:57:10 +02:00
Martin Thoma
b8ea65d41e added margin note 2013-04-18 23:02:00 +02:00
Martin Thoma
9c8eceafc9 added page numbers 2013-04-16 20:08:54 +02:00
Martin Thoma
b8d22f0a69 added template 2013-04-15 21:52:02 +02:00
Martin Thoma
5d4f344596 added comparison between computer science and math 2013-04-14 16:03:43 +02:00