Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask PL-SQL Expert

Description:

Demonstrate your knowledge of PL/SQL programming by writing and thoroughly testing triggers and stored procedures associated with an e-commerce application that provides security logs for all transactions by user, product, and date. I will provide specific requirements and design details for this project below and we could have more discussion about the project in the Conferences area. Submit the scripts with all of your function SQL and PL/SQL code, and provide the results of running your scripts with the SQL*Plus spool command.

You MUST name your file to include your first initial of your first name and last name.
Total is 15 points or 15% to your final grade

Functional requirement:

We will develop a small online transaction application supported by our database, movie distributing and renting system. In the application, we should meet three functional requirements:
1) Track transaction events, and track runtime errors.
2) Handle movie distributing business process.
3) Application interface which allows users to process orders.
4) No additional database tables are required unless you think it is necessary to enhance your application.

Track transaction events, and track runtime errors: 3/15 points

The link below provides a script which allow you to create two tables for tracking purposes One table for tracking events and the other for errors.

Script to create logs tables

Track errors or exceptions during runtime.
Track any error or exception occurs during your application execution. this means that you should include tracking code in every program unit you develop.
Take a look of the table for error logging and see what data should be inserted into the table when error occurs. The code should be part of error handling in exception handle section.
Track event or application process during runtime.
This type of logs for recording the events during the code execution. Content of the log may contain part of the data being changed and who changed it. The code to track events should be located at the end of a process. It is not necessary to log any event that does not alter the database, such as query table and display the content.
Take a look of the table for event logging and see what data should be inserted into these tables after event occurs.

Handle movie distributing business process.
In this part of the project, you are asked to design a few stored procedure or functions to handle online movie distribution.
These procedures or functions should be able to

1)process orders for distributors. When a customer (movie store) places order, ordering information should be stored in database tables.

Customers provide movie title, number of copies they want, the distributed type they prefer(DVD or Video) and store name. Customers do not know movie_id or store_id, therefore, these cannot be used as input parameters for your procedure as customer data.

2)allow customers (movie stores) to check movie availability. if it is available, provide number in stock and unit price. If it is unavailable message the customer the movie requested is not available.

3) if the order has been filled, generate an invoice to send to the customer.

Note: This is one of the place where tracking event is necessary.

Errors and events should be both tracked as described before. Events that cause database change need to be tracked. Any other events which do not cause any database changes are not necessary to be tracked. For example, procedure contains only query activities, tracking event could be ignored.

Application interface which allows users to process either orders: 3/15 points

In general, the interface should provide GUI to users. However, PL/SQL does not have that feature. What we are going to do is to develop script which performs the similar functionality. Essentially calling the procedures and functions you created to complete order.

Script should be able to

1) take an order (ordering data)
2) place an order by calling all the procedures used to process order.
3) generate and print invoice based on order, the invoice should include order id, distributor name, movie title, number of copies, and unit price, and total payment and order completed date.
4) query event_logs and error_logs to show the result of the order transaction and/or any potential issues within the order.

Submit requirement:
The scripts to create procedures and function.
The script to execute the procedures to place orders
The text file for output of execution results.

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M9526918

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 ...

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 ...

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 ...

  • 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