• I've make this Fiddle and is running fine, I don't get it where is the problem:

    http://sqlfiddle.com/#!6/65744/6/0