Fun with Django and Databases

Fun with Django and Databases

A talk I gave at EuroPython 2010

077e9a0cb34fa3eba2699240c9509717?s=128

Andrew Godwin

July 19, 2010
Tweet

Transcript

  1. 6.

    ""When all you have is a hammer, everything looks like

    a nail"" Abraham Manslow (paraphrased)
  2. 9.

    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 """)