solution ex13 + adding ex 14 and 15 DDL in SQL