An insurance company needs to store their salespeople’s information who are selling their insurance policies. They already have a database with multiple tables, one of the tables (Salesperson) stores information about each salesperson along with the bonus percent they receive, based on the city where the insurance is sold. The table has the following fields: Salesperson(spID, spName, spBirthDate,spCitySelling, bonusPercent) spID: Unique identification number of the salesperson. spName: Full name of the salesperson. spBirthDate: Birthdate of the salesperson. spCitySelling: The city in which the salesperson is selling the insurance. bonusPercent: The bonus percent received by the salesperson based on the city in which he/she sells the insurance. Each salesperson can sell the insurance in just one city. However, for a city, there can be more than one salesperson appointed. Also, the bonus percent is fixed for each city. For example, all of the salespeople who sells insurance in “Mumbai” shall receive bonus of 10% of their total sales. Similarly, all of the salespeople who sell in “Calcutta”, receive a bonus of 8% and so on. Thus, the value for bonusPercent is completely dependent on the city in which the salesperson sells the insurance. As a database engineer, you are required to: a. Write 5 sample records for the given relation in tabular structure.
An insurance company needs to store their salespeople’s information who are selling their insurance policies. They already have a
- Salesperson(spID, spName, spBirthDate,spCitySelling, bonusPercent)
- spID: Unique identification number of the salesperson.
- spName: Full name of the salesperson.
- spBirthDate: Birthdate of the salesperson.
- spCitySelling: The city in which the salesperson is selling the insurance.
- bonusPercent: The bonus percent received by the salesperson based on the city in which he/she sells the insurance.
Each salesperson can sell the insurance in just one city. However, for a city, there can be more than one salesperson appointed. Also, the bonus percent is fixed for each city. For example, all of the salespeople who sells insurance in “Mumbai” shall receive bonus of 10% of their total sales. Similarly, all of the salespeople who sell in “Calcutta”, receive a bonus of 8% and so on. Thus, the value for bonusPercent is completely dependent on the city in which the salesperson sells the insurance.
As a database engineer, you are required to:
a. Write 5 sample records for the given relation in tabular structure.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps