Got a SQL question? Any SQL flavor here, just ask. Indicate your db, quick question: quick answer. Long question, we will need an MCVE ---> http://stackoverflow.com/help/mcve you can build it with this -> http://dbfiddle.uk or http://sqlfiddle.com. Thanks.