""Andrew speaks English
like a machine gun
speaks bullets.""
Reinout van Rees
Slide 3
Slide 3 text
Introduction
Slide 4
Slide 4 text
from django.db import models
Slide 5
Slide 5 text
First, an aside
Slide 6
Slide 6 text
""When all you have is a
hammer, everything
looks like a nail""
Abraham Manslow (paraphrased)
Slide 7
Slide 7 text
Also, "NoSQL"? Really?
Slide 8
Slide 8 text
queryset.raw()
Slide 9
Slide 9 text
qs = Teacher.objects.raw("""
SELECT t.name, COUNT(s.id)
FROM school_teacher AS t
INNER JOIN school_student AS s
ON t.id = s.teacher_id
GROUP BY t.name
HAVING COUNT(s.id) > 2
""")