2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents
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
..
Analysis I added compiled scripts 2012-12-06 21:42:46 +01:00
Analysis II added compiled scripts 2012-12-06 21:42:46 +01:00
Analysis III db -> differenzierbar 2012-12-06 22:21:33 +01:00
attachfile-example added attachfile example 2012-12-19 10:08:25 +01:00
biblatex-mwe minor 2013-05-13 20:37:11 +02:00
book compiled document examples 2013-04-14 14:06:27 +02:00
chess-chessboard-4x4 compiled document examples 2013-04-14 14:06:27 +02:00
chess-chessboard-shortest-game compiled document examples 2013-04-14 14:06:27 +02:00
chess-chessboard-simple-example compiled document examples 2013-04-14 14:06:27 +02:00
chess-skak-simple-example compiled document examples 2013-04-14 14:06:27 +02:00
csv-line-plot added more CSV / function plotting examples 2013-05-11 14:05:37 +02:00
csv-print-table added CSV print table example 2013-05-11 13:34:00 +02:00
cv-curriculum-vitae updated cv and fixed typo 2013-07-01 21:28:25 +02:00
facharbeit-rsa misc 2013-05-18 13:44:47 +02:00
Feedback minor changes 2012-11-19 07:29:02 +01:00
gallery compiled document examples 2013-04-14 14:06:27 +02:00
gantt added some tasks 2012-12-18 20:16:49 +01:00
gantt-pgf compiled document examples 2013-04-14 14:06:27 +02:00
index compiled document examples 2013-04-14 14:06:27 +02:00
kit-muendlich-info compiled document examples 2013-04-14 14:06:27 +02:00
klausurvorbereitung-algortihmen-2 misc 2013-03-05 11:37:18 +01:00
klausurvorbereitung-gbi added some more documents 2013-02-26 11:57:49 +01:00
letter compiled document examples 2013-04-14 14:06:27 +02:00
manual compiled document examples 2013-04-14 14:06:27 +02:00
margin-notes added margin note 2013-04-18 23:02:00 +02:00
math-euklidische-normalform compiled document examples 2013-04-14 14:06:27 +02:00
math-sylvester-diagonal-matrix compiled document examples 2013-04-14 14:06:27 +02:00
mathe-blutspende compiled document examples 2013-04-14 14:06:27 +02:00
mathe-burdsch-chalifa compiled document examples 2013-04-14 14:06:27 +02:00
mathe-handlungsreisender compiled document examples 2013-04-14 14:06:27 +02:00
mathe-info-studium added comparison between computer science and math 2013-04-14 16:03:43 +02:00
mathe-lineare-algebra compiled document examples 2013-04-14 14:06:27 +02:00
mathe-reis compiled document examples 2013-04-14 14:06:27 +02:00
mathe-vorlage added margin note 2013-04-18 23:02:00 +02:00
milgrams-small-world zahl korrigiert 2013-04-25 09:07:16 +02:00
musterloesung-db-2012-09-24 Merge pull request #4 from mcwise/patch-1 2013-07-27 11:10:04 -07:00
musterloesung-db-klausur-b left join sufficient 2013-07-30 11:14:45 +02:00
nomenclature added nomenclature example 2012-09-28 15:16:16 +02:00
pflichtenheft compiled document examples 2013-04-14 14:06:27 +02:00
proof-of-correctness-pogo misc 2013-05-18 13:44:47 +02:00
protokoll compiled document examples 2013-04-14 14:06:27 +02:00
report-template compiled document examples 2013-04-14 14:06:27 +02:00
si-units si-units example: minor changes 2013-05-31 09:48:53 +02:00
sicherheit-uebungsblatt added margin note 2013-04-18 23:02:00 +02:00
size compiled document examples 2013-04-14 14:06:27 +02:00
some-text-styling misc 2013-06-11 21:59:02 +02:00
source-code-listings added PDFs 2012-11-18 14:06:56 +01:00
source-code-minted made source code easier to copy 2012-11-18 21:26:04 +01:00
stundenplan compiled document examples 2013-04-14 14:06:27 +02:00
tutorenschulung-abschlussreflexion added compiled example of abschlusreflexion 2013-04-10 10:46:33 +02:00