Add a new parts record and delete an existing parts record

Assignment Help PL-SQL Programming
Reference no: EM13932977

The user should be able to do the following:

Scroll through the data records, showing all the fields.

Add a new parts record, delete an existing parts record, and update an existing parts record.

Create a sequential file with the inventory data.

Display the number of active and discontinued inventory parts.

Program Requirements

You must center the form on the screen.

In addition to the database fields, for each part in the inventory you must calculate and display

the gross profit (sales price - cost)

the total cost value of the part in the inventory (cost * quantity)

the total sales value of the part (sales price * quantity)

in 3 unbound control instances. These values should be updated when the current record changes.

Create a button and corresponding click event handler that will display a message box containing the number of discontinued

inventory parts, and the number of inventory parts that are not discontinued.

You must use labels to make the application understandable.

You must catch any arithmetic exceptions that occur during calculations and display an error message

You must use at least one user-defined FUNCTION and one SUB procedure.

You need to provide a way to exit the program gracefully

Field Name Description DatA TYPE

Fld Part number Unique identification Number Integer

FldPart Description Description of part String

FldCost Cost of part Single

FldSalePrice Sale price of part Single

FldQuantityOnHand Number of items in inventory Single

FldDiscontinued True if the item is discontinued Boolen

Reference no: EM13932977

Questions Cloud

Dividends are expected to grow at rate : Red-Blue Co. is growing quickly. Dividends are expected to grow at a rate of 24% for the next three years, with the growth rate falling off to the constant 6% per year indefinitely. If the required return is 11%, and the company just paid a dividend ..
Statement with other theories of general interest rates : The Liquidity Preference Theory states the rate of interest is not the reward for saving but for parting with (lending) liquidity.Critically evaluate this statement with other theories of general interest rates.
Assumptions that underlie your perspective and position : Do you identify and assess the key assumptions that underlie your perspective and position? (e.g., do you talk about how you arrived at your theory or do you simply state your conclusions?)
How to maintain the loyalty of customer to the company : Discuss the role of social media in relationship marketing. Use theory and examples to demonstrate you understanding. What is social media? The importance of social media? How to maintain the loyalty of customer to the company
Add a new parts record and delete an existing parts record : Add a new parts record, delete an existing parts record, and update an existing parts record.
Time value of money-interest rates : Ted Ltd is entitled to receive a cash inflow of $80,000 in 2 years' time and a further cash inflow of $14,000 in 5 years' time (in year 5).  If the interest rate is 8.5% per annum, how much is this stream of cash inflows worth:
An express and local train leave grayslake : An express and local train leave GraysLake at 3 P.M. and hear for Chicago 60 miles away. The express travels twice as fast as the local and arrives 10 hour ahead of the local. Find the speed of each train?
How uk and germany compare on migration : Read the two newspaper articles, each of which adopts a different writing style: Article 1: Refugees welcome? How UK and Germany compare on migration (Appendix 1)
What particular features of global hearing implants market : Could you please provide some assistance with regard to these different features, or at least point me in the right direction to get this information as I'm finding it hard to list the different features for commodity markets and/or global hearing..

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