Construct a query that will show the number of days

Assignment Help PL-SQL Programming
Reference no: EM13315649

Imagine that you work for a finance industry-based organization. Your organization is looking to submit its database design documentation to an evaluation team in order to meet Sarbanes-Oxley (SOX) compliance. You have been assigned to assist in preparing the documentation of the organization's sales database. You are asked to propose a data dictionary that can be used to document the following:

  • Employee (EmpNumber, EmpFirstName, EmpLastName, CommissionRate, YrlySalary, DepartmentID, JobID)
  • Invoice (InvNumber, InvDate, EmpNumber, InvAmount, CustomerID)
  • InvoiceLine (InvLineNumber, InvNumber, ProductNumber, Quantity)
  • Product (ProductNumber, ProductDescription, ProductCost)
  • Department (DepartmentID, DepartmentDescription)
  • Job (JobID, JobDescription)
  • Customer (CustomerID, CustomerName, CustomerAddress, CustomerPhone)

Write a three to four (3-4) page paper in which you:

  1. Create a data dictionary that includes the following:
    1. A description of the content for each field
    2. The data type of each field
    3. The format the data will be stored as in the field
    4. The range of value for the field
    5. A label, as required, if the attribute is a primary key or foreign key

Note: An example is shown in Table 7.3 in chapter 7 of the textbook.

  1. Imagine that you are asked to identify the number of days that exist between the first invoice and last invoice for each month and complete the following:
    1. Construct a query that will show the number of days that exist between the first invoice and last invoice, for each month, for each employee, using the DATEDIFF function. Be sure to provide the SQL script that will carry out this function.
    2. Construct a query to show the expected payment date if invoices are due within 30 days of transaction.
    3. Construct a query that will show distinct area codes of the customers.
  2. Create a plan of the necessary activities that would be required to implement a valid database design process by including the following:
    1. Steps in the conceptual design stage
    2. Steps in DBMS selection stage
    3. Steps in logical design stage
    4. Steps in physical design stage
    5. Task details of each activity within each stage

Your assignment must follow these formatting requirements:

  • Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.
  • Include a cover page containing the title of the assignment, the student's name, the professor's name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.

Reference no: EM13315649

Questions Cloud

How the sequential and additive composition adaptors differ : Provide a real-life example of a software application that illustrates the different types of adaptors needed to support sequential composition and a real-life example of a software application.
What is the voltage on the surface of the sphere : A proton is moving with an initial velocity of 6.28 x 10^5 m/s straight towards a large conducting sphere of radius 85.2 cm. What is the voltage on the surface of the sphere
Determine who is at fault for the component failure : manufacturing process that unintentionally introduces cracks to the surface of a part was used to produce load-bearing components. The design requires that the component be able to withstand a stress of 450 MPa.
What average power is delivered to the circuit : A series RLC circuit has a resistance of 24 %u03A9 and an impedance of 100 %u03A9. what average power is delivered to the circuit
Construct a query that will show the number of days : Imagine that you work for a finance industry-based organization. Your organization is looking to submit its database design documentation to an evaluation team in order to meet Sarbanes-Oxley (SOX) compliance.
Obtain the mathematical formula for the electric field : There is a straight plastic rod that is parallel to the y axis with length L and total charge Q.Point P is placed on the x axis half way down the rod
Find the average resistance force that sand exerts on ball : A steel ball of mass .5 kg is fired vertically up from the edge of a building 20 m high with an initial speed of 10 m/s. find the average resistance force that sand exerts on the ball
What is the concentration of nh3of household ammonia : What is the concentration of NH3 (in mg/L) of household ammonia that contains 3.00 percent by wieght of NH3. Assume the density of water = 1000kg/m^3
What would the linear speed be at the bottom : A thin spherical shell of mass 0.25 kg and radius 0.15 m is released from rest from the top of a 3.0-m high ramp. What would the linear speed be at the bottom

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Write a program in towers of hanoi

How to write a program in towers of hanoi using pl/sql language

  Script that creates and calls a stored

Write a script that creates and calls a stored procedure named spInsertProduct that inserts a row into the Products table. This stored procedure should accept five parameters

  Create and populate the database system using sql server

Global Car Club (GCC) is a small individually owned club which loans cars to its members. GCC first formed in 2009; has over more than 100 good mixes of members and counting.

  Write statement which creates table named part

Write the statement which creates table named Part, with Id field as an int idendity PK, a SupplierId int field, a Description string field of size 25, a Count int field, a Class string field

  Create report to display scr courses in alphabetical order

Create the detail report which will display all SCR courses in alphabetical order, with a course name and instructor name in the group header.

  Statement to display the sku, sku_description

write an sql statement to display the SKU, SKU_Description, WareHouse ID, and QuantityOnHand for all products having a QuantityOnOrder equal to 0. Sort the results in descending order by WareHouse ID and in ascending order by SKU

  Create report using wizard or based on sql query

Create a report using the wizard or based on an SQL query that that shows Courses that instructors are approved to teach. Show Course Number, First Name, and Last Name of Instructor.

  What is column aliases

For Assignment week 1, answer the following questions. Save your answer to a word document on your desktop (please save as word 2003 format), and submit your results.

  F does not logically imply

Given R = (J,K,L ) and the set F of FDs J -> K and L -> K , show that F does NOT logically

  Write down sql needed to create employee table

Write down SQL needed to create employee table containing the following data: employeeID, text, length of 5, primary key lastName, text, length of 25

  Table called transactionlog

Create a table called TransactionLog. Create a trigger, which inserts a new record (user CardNo, ISBN, date) into the TransactionLog table whenever the a borrower checks out a book or returns a book.

  Display all the lastnames from the customers table

Display all the LastNames from the Customers table and any associated OrdersIDs from the Orders Table. Show the LastName even if they do not have any associated orders. Order the results by LastName in ascending order.

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