SQL

Some basic SQL code to build written premium table and earned premium
query.