Please tell me if there are any mistakes or how to improve it. I am quite beginner with SQL, not even 100% sure if it works as it should. So, if you see anything wrong with it please let me know :)