SQL practice 28 Jul 2014