Design database for fictitious xyz-online cellphone store

Assignment Help PL-SQL Programming
Reference no: EM13824899

Your assignment is to design a database for a fictitious XYZ-Online Cellphone Store. The system will allow customers to buy unlocked cellphones directly online (no contract is required). You will design the database, insert some sample data, and implement a set of required features. Each feature will be implemented as one Oracle PL/SQL procedure (you can create sub-procedures that will be called by the main procedure for that feature). You do NOT need to write a graphic user interface. You also need to provide statements to execute your procedures. The instructor and TA will run the statements you provided to test your program.  

You can make the following assumptions in this project.

  1. The system needs to store data about phones, customers (you can assume that each customer needs to register with the system), customer's orders, and shipping methods.
  2. A customer needs to register to use the system. The username will be the customer's email address and the customer also needs to provide a password. The customer also needs to provide personal information such as address and contact phone numbers.
  3. The system needs to store the following information about a cellphone: brand (e.g., Apple, Samsung), model (e.g., iPhone 6), price, operating system (Android, iOS, Windows), screen size, camera resolution, network (2G, 3G, 4G), RAM size, storage size, battery (talk time), color, and the number of this type of phones in stock. Each type of cellphone also has a product ID as unique identifier (this ID is for the same type of phones, not IMEI).
  4. The main feature of the system is to allow customers to search for phones, order cellphones, and check shipping status.
  5. Each order contains order date, product ID of the phone in the order, quantity, shipping method, shipping date, shipping status (not shipped yet, shipped, delivered), total due, and payment method (including credit card number and expiration date).
  6. The shipping mode includes regular and express. The cost of regular shipping is $5 and the cost of express shipping is $20.

Features:

1. New customer registration: create a new customer (with name, email address as user name, password, home address, phone number). The system needs to check whether the email address exists in the database. If so (the customer already registered), the procedure will tell the customer he or she has already registered. Otherwise the system needs to create a new customer in the database and store provided information. The procedure needs to print out a message indicating the result (registration is successful, or registration fails for what reason).

2. Allow a customer to search for cellphones in a given price range. The input is the price range and the procedure prints out a list of cellphones within the price range and also displays brand, model, price, operating system, screen size, camera resolution, network, RAM size, storage size, battery, and color, and the number of that type of phones in stock.

3. Allow a customer to place an order for a cell phone. The input is the Product ID of the phone, quantity, shipping method, credit card number and expiration date. The procedure will first check whether the product ID exists and whether there is enough in stock (i.e., quantity <= number in stock). If not, please print out that there is not enough in stock and return. Otherwise, the procedure creates a new order and computes total due, which equals (price of phone*quantity + shipping cost)*1.06 (assuming 6% sales tax). Each order will have a unique order ID. Please print out the order date (you can use sysdate), order ID, model of the phone being ordered, quantity, shipping mode, and total due. Please also update the number of this type of phones in stock accordingly (by subtracting the order quantity from the current number in stock).

4. Update the shipping status of an order. The input is the order ID and new shipping status. Please also update the shipping date if the shipping status is updated from 'not shipped yet' to 'shipped' (you can use sysdate as shipping date).

5. Allow a customer to check the shipping status of an order. The input is the order ID and the procedure prints out the shipping status and shipping date (if available). Please handle the case when the order ID is invalid.

There will be 3 deliverables:

Deliverable 1- Project Management Schedule.

  •  
    • Include a timeline showing each phase of your project with its tasks and time duration, for the entire effort.
    • Tasks should include system design, populating tables, writing code, testing and debugging code, creating demo script, writing documentation, etc. Smaller milestones shall be set for deliverable 2 and 3.
    • This deliverable will be graded based on whether these items are included and whether the schedule is reasonable (e.g., enough time is left for testing and debugging).

 Deliverable 2- Design Document which includes the following:

  •  
    • ER diagram of the database. You don’t have to follow exact notations of ER diagram, but need to show tables, columns, primary keys, and foreign key links.
    • SQL statements to create database tables and to insert some sample data (at least 5 rows per table).
    • Specification for each required feature. The specification should include a description of input parameters and output (usually screen outputs or changes to some tables). You don’t need to implement any of these features at this point.

Reference no: EM13824899

Questions Cloud

Based on the assigned readings discuss whistleblowing : Based on the assigned readings discuss whistleblowing from several perspectives: 1) Explain SOX. What are its basic points? 2) How effective is whistleblowing?
Write essay that explain the term fiscal federalism : explain the term "Fiscal Federalism." In addition discuss Grants-in-Aid. Federal grants come in a several different ways so distinguish the difference types.
What can middle managers do to moderate : What can middle managers do to moderate the distortions introduced by such biases?
How you understand role of government in helping in business : Explain how you understand the role of government in helping their businesses to succeed (do not focus on one country, I gave you readings addressing different countries).
Design database for fictitious xyz-online cellphone store : Design a database for a fictitious XYZ-Online Cellphone Store. The system will allow customers to buy unlocked cellphones directly online (no contract is required). You will design the database, insert some sample data, and implement a set of r..
Quality management capability study : Quality Management Capability Study
How did a particular reading help you and why : How did a particular reading help you and why? How did another particular reading show you the problems states face and how exactly?
Analyze four trends in st charles county government budgets : You will be analyzing four trends in St Charles County Government budgets. In this case looking at the budgets for 2010-2014. Use an Excel format to look at each category titled.
Theory or hypothesis about some economic relationship : Develop a theory or hypothesis about some economic relationship -  draw conclusions to support your theory. Include at least six (6) references (no more than three years old) from material outside the text(s).

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd