Question

In: Accounting

Problem: Read the following tables and answer the following questions: Customers Customer ID Name Address Phone...

Problem: Read the following tables and answer the following questions:

Customers

Customer ID

Name

Address

Phone

Email

9087

John Doe

204 University Ave.

987-098-9087

[email protected]

2098

Bill Lawrence

123 Jones St

717-387-3387

Business

2398

Laura Smith

0900 West Blvd.

901-234-4567

Information

Transactions

Customer ID

Account Number

Date of Last Transaction

9087

375

01/31/98

2098

123

03/09/97

2398

375

09/21/97

2098

375

12/31/97

2398

123

02/01/98

Accounts

Account Number

Balance

Account Type

375

234.45

Checking

123

056.90

Savings

1. Who owns the account with account number 123?

2. Can you insert a row with 3456 Customer ID, 456 as Account Number, and 09/20/97 as Data of Last Transaction into table Transactions? Why or why not?

3. List how many records in Transactiontable corresponds to each record in Customerstable, and how many records inTransactionstable corresponds to each record in Accountstable;

4. What is the mapping cardinality between customers and accounts?

5. Which column(s) is a primary key in each table?

6. Which columns are foreign keys?

Solutions

Expert Solution

1):- Account number 123 is a joint account owned by Bill Lawrence (Customer ID 2098) and Laura Smith (Customer ID 2398).

2):- No, you cannot enter such a row in Transactions table, because there is no customer with ID 3456 in Customers table and no account with number 456 in Accounts table.

3):-

Customerstable record # of corresponding records in

(customer ID) Transactions table. 9087. 1 2098. 2. 2398. 2.

Accountstable record. # of corresponding records (ACC.NO) in Transactions table. 375. 3. 123. 2

4):- There is a many-to-many mapping between customers and accounts. Cardinality on the Customersside is (1, m) and that on the Accountsside is (1, n). Relation table Transactions exhibits this [m: n] mapping between the two entities Customer and Account.

5):- Customers– Customer ID

Accounts– Account Number

Transactions– composite key (Customer ID, Account Number)

6):- Transactions– Customer ID (Customers), Account Number (Accounts).


Related Solutions

List customer id, customer full name (Last name, full name, state) for those customers that have...
List customer id, customer full name (Last name, full name, state) for those customers that have ordered more than once. List customers (order id, customer id, and customer last name) that had more than 2 -- products in their order. Order your result based on customer id followed by order id SQL SERVER DATABASE
Write a Java program which asks customer name, id, address and other personal information, there are...
Write a Java program which asks customer name, id, address and other personal information, there are two types of customers, walk-in and credit card. The rates of items are different for both type of customers. System also asks for customer type. Depending upon customer type, it calculates total payment. A credit-card customer will pay 5 % extra the actual price. Use object-oriented concepts to solve the problem. Define as many items and prices as you want. Example Output: Enter Name...
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.
Given the following 7 relations: MIScompany (name, address, phone, email, FedTaxId, StaTaxId) branch (branchId, name, address,...
Given the following 7 relations: MIScompany (name, address, phone, email, FedTaxId, StaTaxId) branch (branchId, name, address, phone, email, FedTaxId, StaTaxId) employee (empId, driverId, ssno, name, branchId) customer (custId, name, address, driverId, ssno, FedTaxId, StaTaxId) equipment (equipId, name, type, upc, purchaseDate, year, manufacturId, cost, rentFee, branchId ) manufacturer (manufacturId, name, FedTaxId, StaTaxId, phone, email) rental (rentalId, equipId, custId, rentDate&time, returnDate&time, empId) Use relational algebra to retrieve every customer that has not rented any equipment in September 2020. The report should contain...
Write a Java program for a restaurant with the following features: ◦ Customer: Name, Surname, ID...
Write a Java program for a restaurant with the following features: ◦ Customer: Name, Surname, ID (incremental ID by 1 for each new customer), Email, Phone, Address. ◦ Service: ID (incremental ID by1 for each group),CustomerID, Priority (High, Medium, Low, Other), ResolutionTimeFrame (Measured in Man hours), AssignedUser, Status(resolved or not), Fee. ◦ User (simple user of system): ID, Name, Surname, Username and Password (insert from code five fixed users), Address , PhoneNumber ◦ Manager: Name, Surname, Username and Password (insert...
Tables CUSTOMER CustomerID FirstName LastName Address Phone LicenseNo 1 David Hacker 101 Yammba road, Rockhampton 0749008877...
Tables CUSTOMER CustomerID FirstName LastName Address Phone LicenseNo 1 David Hacker 101 Yammba road, Rockhampton 0749008877 089 777 123 2 Tony Morrison 98 South street, Melbourne 0490787772 088777555 3 Issac Newton 90 Heaven road, Sydney 0299001122 099 776 123 4 James Farrell 101 St Lucia Garden, Brisbane 0733099000 090 566 777 5 David Land 345 Illinois road, Brisbane 0739000554 456 000 999 6 Peter Garry 201 South port road, Gold Coast 0745676766 234 090 767 RENTAL RentalID CustomerID RegoNo StartDate...
Read the following case and answer the questions below. McDonald’s When a customer drives up to...
Read the following case and answer the questions below. McDonald’s When a customer drives up to the speaker box at some McDonald’s drive-throughs, their order is placed with an employee located in a distant call center. The order, along with a photograph taken to the match the customer with the order, is then instantly displayed on a video screen in the food preparation area of the restaurant where the order is placed. Brainerd, Michigan – Ellie Feld pulled into the...
Employee ID First Name Last Name email Title Address Extension Department Department ID Hiring Date Department...
Employee ID First Name Last Name email Title Address Extension Department Department ID Hiring Date Department Phone # 0001 John Smith jsmith Accountant 1300 West st 5775 Accounting 2100 8/1998 407-366-5700 0002 Brian Miller badams Admin Assistant 1552 Palm dr 5367 Human resource 2300 4/1995 407-366-5300 0003 James Miller miller Inventory Manager 2713 Buck rd 5432 Production 2520 8/1998 407-366-5400 0004 John Jackson jackson_sam Sales Person 433 tree dr 5568 Sales 2102 6/1997 407-366-5500 0005 Robert Davis Davis Manager 713...
Case Study: Marketing and Customer Service Read the following case study to answer the questions provided...
Case Study: Marketing and Customer Service Read the following case study to answer the questions provided below. North Hampton Clothiers North Hampton Clothiers, a national nature and recreation clothing brand based in New England, has a commitment to providing its customers with what the company’s Vice President of Marketing and Customer Relations calls a “kitchen sink warranty program”, meaning the company will do whatever it needs to right a customer’s problem with one of their products. The company proudly embraces...
For the following two network interfaces, identify their IP address, host name, subnet id, prefix, and...
For the following two network interfaces, identify their IP address, host name, subnet id, prefix, and subnet mask. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      ether 6c:96:cf:d9:3f:0f      inet6 fe80::cb3:7b1b:362f:48bc%en0 prefixlen 64 secured scopeid 0x5      inet 10.21.136.95 netmask 0xffff0000 broadcast 10.21.255.255      nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484      ether 26:db:01:45:50:73      inet6 fe80::24db:1ff:fe45:5073%awdl0 prefixlen 64 scopeid 0x7      nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT