Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago