Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Fun with Django and Databases

Fun with Django and Databases

A talk I gave at EuroPython 2010

Andrew Godwin

July 19, 2010
Tweet

More Decks by Andrew Godwin

Other Decks in Programming

Transcript

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

    a nail"" Abraham Manslow (paraphrased)
  2. 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 """)