Sort:  

Thank you for your comment, you will see, the sql is very interesting:)