Question

In: Computer Science

A company creates a database for its customers in which each customer is identified by their...

A company creates a database for its customers in which each customer is identified by their phone number. In this discussion, explore whether or not this is a function with your classmates. In your first post, address the following:

  1. Assign one variable as the input and the other variable as the output for this scenario. Is this relation a function? Justify your answer using the definition of a function, and explain your reasoning carefully.
  2. Do you think this is a good setup for the company’s database? Describe any pitfalls you see in this setup.
  3. Suggest an alternative identification system for the company’s database.

Solutions

Expert Solution

Function:-

A function is a relation between sets that associates to every element of a first set exactly one element of the second set.

Set means a collection of well-defined objects.

In our case, the first set is the collection of all phone numbers of customers(domain) and the second set is the collection of records of the customers(range).

In the database, to uniquely identify each record(details of a customer) there must be a unique key. In our case, the unique key is phone number.

To be called a function the criteria is that each element of the first set(in our case, the phone number of customers) is associated with exactly one element of the second set(in our case, the details of the customer).

It is not possible that two customers have the same phone number. That means the criteria for being a function is satisfied.

In the above example, variable p is assigned as the input and variable c is assigned as the output. So when we give a phone number p to a function f, it will give output c(customer).

Pitfalls in this setup:-

It is possible that a person can change his/her phone number, in that case, the database should be updated.

It is also possible that a person can have more than one phone number. So there can be multiple records in the database for the same person.

An alternative identification system for the company’s database:-

The company can use the email id of the person to uniquely identify the customers. No two person can have the same email id.

The company can also use the registration number when the customer comes for the first time.


Related Solutions

An insurance company has an online help service for its customers. Customer queries that take more...
An insurance company has an online help service for its customers. Customer queries that take more than 5 minutes to resolve are categorized as​ "unsatisfactory" experiences. To evaluate the quality of its​ service, the company takes 10 samples of 100 calls each while the process is under control. p values (n = 100) 0.06 0.14 0.13 0.05 0.16 0.08 0.17 0.04 0.19 0.16 a. calculate the p̄ and Sp values and set up control limits so that future sample p...
A certain business keeps a database of information about its customers. A. Let C be the...
A certain business keeps a database of information about its customers. A. Let C be the rule which assigns to each customer shown in the table his or her home phone number. Is C a function? Explain your reasoning.
Database __________ which is the logical design of the database, and the database _______ which is...
Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time. a) Instance, Schema b) Relation, Schema c) Relation, Domain d) Schema, Instance
An insurance company’s database includes a variable, DAMAGE, that records, for each customer claim of automobile...
An insurance company’s database includes a variable, DAMAGE, that records, for each customer claim of automobile damage due to hail, the severity of the damage to the car. DAMAGE is recorded as 1 = minor damage, …, 5 = totaled. One of the following graphs is an appropriate way to display the DAMAGE variable. Which one? a. Time-series plot b. Boxplot c. Pie chart
An insurance company’s database includes a variable, DAMAGE, that records, for each customer claim of automobile...
An insurance company’s database includes a variable, DAMAGE, that records, for each customer claim of automobile damage due to hail, the severity of the damage to the car. DAMAGE is recorded as 1 = minor damage, …, 5 = totaled. Also in the data table is DAY, the day of the week of the hail damage (Monday, Tuesday, …). One of the following graphs is an appropriate way to display the association between DAMAGE and DAY. Which one? a. Cross-tabulation...
For the given database schema. Answer the following questions. Company Database customer(cust_id, name, address) product(product_id, product_name,...
For the given database schema. Answer the following questions. Company Database customer(cust_id, name, address) product(product_id, product_name, price, quantity) transaction(trans_id, cust_id, time_date) product_trans(product_id, trans_id) Identify the primary keys and foreign keys for the relations and specify at least two different types of integrity constraints that would be applicable for different relations given.
Your company maintains a database with information on your customers, and you are interested in analyzing...
Your company maintains a database with information on your customers, and you are interested in analyzing patters observed over the past quarter. 23% of customer in the database placed new orders within this period. However, for those customers who had a salesperson assigned to them, the new order rate was 58%. Overall, 14% of customers within the database had salesperson assigned to them. a) Draw a contingency table for this situation. b) What percentage of customers in the database placed...
in C++ Requirements: Write a program that creates a new class called Customer. The Customer class...
in C++ Requirements: Write a program that creates a new class called Customer. The Customer class should include the following private data: name - the customer's name, a string. phone - the customer's phone number, a string. email - the customer's email address, a string. In addition, the class should include appropriate accessor and mutator functions to set and get each of these values. Have your program create one Customer objects and assign a name, phone number, and email address...
Write a C program that creates a database of plant height samples. In this scenario a...
Write a C program that creates a database of plant height samples. In this scenario a researcher enters a name of a group/type of plants, and heights for each plant in the group/type Use input will be stored in a database file, which should be a file called database.csv and should be in the following formatPlant1, number_of_samples, sample1, sample2, sample3 ...Plant2, number_of_samples, sample1, sample2, sample3 ...Plant3, number_of_samples, sample1, sample2, sample3 ...Lines starts with the name of a plant type, then...
Out of 10 customers- Customer A purchases the most products from a company but is not...
Out of 10 customers- Customer A purchases the most products from a company but is not the most profitable for the company (Customer B is the most profitable out of the 10 customers), what concerns might you have from an audit perspective?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT