Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz
Als Nielsz het zichzelf een beetje goed heeft geleerd, dan sta ik niet voor lul als ik nu left join fluister.
Je staat niet gauw voor lul, bij mij, Nielsz

Volgens mij is er alleen maar een syntactisch verschil tussen left join, en het gebruik van komma's (=inner join)
edit:
Of ik doe iets grondig fout:
Volgens mij is er alleen maar een syntactisch verschil tussen left join, en het gebruik van komma's (=inner join)
edit:
Of ik doe iets grondig fout:
code:
1
2
3
4
5
6
7
8
9
| SELECT itemTypes.itemType,
itemTypes.itemTypeID,
count(*)
FROM items
LEFT JOIN itemTypes
ON itemTypes.itemTypeID=items.itemTypeID
GROUP BY items.itemTypeID; |
Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz
Error on line 1 near 'syntactisch': expected 'functioneel'Op woensdag 17 oktober 2001 13:55 schreef drm het volgende:
Volgens mij is er alleen maar een syntactisch verschil tussen left join, en het gebruik van komma's (=inner join)
Kijk de manual er eens op na of lees een SQL boek
Ik had gehoopt dat jij het me uit ging leggenOp woensdag 17 oktober 2001 14:17 schreef tomato het volgende:
[..]
Error on line 1 near 'syntactisch': expected 'functioneel'
Kijk de manual er eens op na of lees een SQL boek
ff zonder dollen: ik begrijp er niet veel van. Hoe moet ik die LEFT JOIN nou toepassen, en wat is het fundamentele verschil met INNER JOIN
And I already RTFM
edit:
ben er uit
dit wordtem:
code:
1
2
3
4
5
6
7
8
9
| select itemTypes.*,
items.*,
COUNT(items.itemTypeID)
FROM itemTypes
LEFT JOIN items
USING (itemTypeID)
GROUP BY itemTypes.itemTypeID |
Iig bedankt voor het op het goede spoor zetten!
Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz
Pagina: 1