Question

In: Computer Science

Imagine you work for an independent grocery store with 20 employees. The business owner has tasked...

Imagine you work for an independent grocery store with 20 employees. The business owner has tasked you with creating a relational database that will track employee names, IDs, positions (e.g., cashier, manager, clerk, or night crew), and salaries.

Create a relational database table in Microsoft® Access® or MySQL® for the grocery store using the attached data points.

Apply the universal rules (unique primary keys, unique column names, no duplicate rows) to your table.

Include all necessary null values.

Display in the table the requested database queries:

  • INSERT INTO Account: VALUES (188820, ‘Wendall Glass’, $12/h)
  • UPDATE Account: Set salary = $12/h WHERE ID = 128872
  • DELETE FROM Account WHERE ID = 244332

Calculate the grocery store’s SUM salary and the AVG salary per position.

Data Points

  1. Blanche Dishner – 438927 - Manager - $25/h
  2. John Smith - 372991 – Night crew - $17/h
  3. Luciano Sloney – 300126 – Night crew - $17/h
  4. Dorris Goodsell – 300129 -Cashier - $15/h
  5. Sybil Fain – 119325 – Clerk - $11/h
  6. Shaun McNeil – 200743 – Cashier - $13/h
  7. Olen Wigley – 222345 – Cashier - $14/h
  8. Dovie Seawood – 109321 – Clerk - $12/h
  9. Magdalen Mullaney – 256921 – Cashier
  10. Salena Souza – 185549 – Clerk - $12/h
  11. Paige Alvarez - 132943 – Clerk - $11/h
  12. Cassy Lundin – 391285 – Night crew
  13. Tajuana Stoval - 491621 – Manager – $23/h
  14. Joaquina Piasecki – 185392 – Clerk - $13/h
  15. Janiece Abelson – 244332 – Cashier - $13/h
  16. Rogelio Peppler – 128872 – Clerk - $11/h
  17. Fatima Haymaker – 100321 - $13/h
  18. Rico Fairbank – 318821 – Night crew - $16/h
  19. Trey Peloquin – 488326 – Manager - $24/h
  20. Paulene Thibeau – 193931 – Clerk - $12/h

Solutions

Expert Solution

Account table is created in Mysql database -

The data in the given table -

  • INSERT INTO Account: VALUES (188820, ‘Wendall Glass’, $12/h)

  • UPDATE Account: Set salary = $12/h WHERE ID = 12887

  • DELETE FROM Account WHERE ID = 244332

The grocery store’s SUM salary -

The AVG salary per position is -


Related Solutions

You are a grocery store manager. The owner has a lot to say about how your run the store. The owner wants the grocery store to start selling rotisserie chickens.
You are a grocery store manager. The owner has a lot to say about how your run the store. The owner wants the grocery store to start selling rotisserie chickens. This is a new product. You know that you can buy chickens from a local farmer for $2/chicken and it would take you an additional $0.20/chicken to cook it. The grocery store currently pays $4,000/month in mortgage (unrelated to the chickens) and would spend $300 advertising the new rotisserie chickens....
The Good’n’Fresh Grocery Store has two checkout lanes and four employees. Employees are equally skilled, and...
The Good’n’Fresh Grocery Store has two checkout lanes and four employees. Employees are equally skilled, and all are able to either operate a register (checkers) or bag groceries (baggers). The store owner assigns one checker and one bagger to each lane. A lane with a checker and a bagger can check out 46 customers per hour. A lane with a checker only can check out 25 customers per hour. a. In terms of customers checked out per hour, what are...
Imagine that you work for an organization that has no Internet use policy; employees use the...
Imagine that you work for an organization that has no Internet use policy; employees use the Internet in whatever way they want using company-owned personal computers (PCs). Could this cause a problem for the organization? Discuss the following IT security policies and the level of protection each policy provides in the context of your assigned scenario: Internet use policy External device use policy Employee Identity (ID) policy Computer use policy
Geoffrey is the owner of a small grocery store, and is considering buying a car to...
Geoffrey is the owner of a small grocery store, and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $27,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: Insurance and registration will cost $580 per year, payable at the start of each year Based on mileage estimates, petrol will cost $260...
Geoffrey is the owner of a small grocery store, and is considering buying a car to...
Geoffrey is the owner of a small grocery store, and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $33,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: Insurance and registration will cost $550 per year, payable at the start of each year Based on mileage estimates, petrol will cost $290...
Geoffrey is the owner of a small grocery store and is considering buying a car to...
Geoffrey is the owner of a small grocery store and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $40,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: • Insurance and registration will cost $510 per year, payable at the start of each year • Based on mileage estimates, petrol will...
Geoffrey is the owner of a small grocery store, and is considering buying a car to...
Geoffrey is the owner of a small grocery store, and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $37,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: Insurance and registration will cost $440 per year, payable at the start of each year Based on mileage estimates, petrol will cost $270...
Geoffrey is the owner of a small grocery store, and is considering buying a car to...
Geoffrey is the owner of a small grocery store, and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $32,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: Insurance and registration will cost $440 per year, payable at the start of each year Based on mileage estimates, petrol will cost $260...
Geoffrey is the owner of a small grocery store, and is considering buying a car to...
Geoffrey is the owner of a small grocery store, and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $26,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: Insurance and registration will cost $530 per year, payable at the start of each year Based on mileage estimates, petrol will cost $220...
Geoffrey is the owner of a small grocery store, and is considering buying a car to...
Geoffrey is the owner of a small grocery store, and is considering buying a car to help him transport his wares. He has found a suitable used car online that he was able to negotiate to a price of $39,000. After doing a bit more research, he has found the following additional expenses involved in the purchase: Insurance and registration will cost $400 per year, payable at the start of each year Based on mileage estimates, petrol will cost $260...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT