The document describes tasks completed for week 7 of a database course. It includes:
1. Implementing database relations from last week using a selected DBMS.
2. Generating random test data and inserting it into the designed database using a Python script. This added 19 cinema records, 530 movie records, over 541,000 show records, and 208 theater records.
3. Writing 5 SQL queries to retrieve meaningful information from the database, such as total income by movie and theater attendance percentages.
27. Result
The program generated
- 19 rows of data for table “cinemas”
- 530 rows of data for table “movies”
- 541,457 rows of data for table “shows”
- 208 rows of data for table “theaters”