9 tips on writing better SQL