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.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 6RA
icon
Related questions
Question

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Dataset
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage