Comment added: query is made to work with oracle..