Ask PL-SQL Expert

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.

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M91394777
  • Price:- $110

Priced at Now at $110, Verified Solution

Have any Question?


Related Questions in PL-SQL

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As