Solving some problems to practice on sql