Answered step by step
Verified Expert Solution
Question
1 Approved Answer
e) Find the customers who bought a car insurance policy having a beneficiary of themselves. List those customers name, gender, and age. f) List the
e) Find the customers who bought a car insurance policy having a beneficiary of themselves. List those customers name, gender, and age.
f) List the nationalities of the customers who have bought car insurance having a max coverage is larger than $10,000.
g) Which customers (their names) bought all the insurance types from a provider whose code is AD16?
h) List the customers who live in Tucson as well as the annual fee of their insurance policies, if applicable.
1. [32 points] Express the following queries in relational algebra for the Insurance Database, consisting of the following three relations. Attempt to use as many of the different relational operators that are covered in the lecture notes, including the derived operators such as natural join. Customer: CustomerID (string) Name (string) Age (integer) Gender (one of male, female) Nationality (string, nullable) Education Level (integer, nullable) Profession (string, nullable) City (string) State (string) Address (string) Insurance Contract: ContractID (string) Start Year (integer) Stop Year (integer) Provider Code (foreign key to Policy) InsuranceType (foreign key to Policy) CustomerID (foreign key to Customer) Beneficiary (foreign key to Customer) Policy: Provider Code (string) InsuranceType (string) AnnualFee (float) MaxCoverage (float) CanDuplicate (bool) MinEducation Level (integer, the limitation to buy the insurance) Notes: If CanDuplicate is set to be False, people who bought the insurance cannot buy another insurance contract with the same InsuranceType. Otherwise, they can. Education Level is an integer. The higher the number is, the higher the level isStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started