Construct a query that will show the number of days

Assignment Help Database Management System
Reference no: EM131420183

Assignment: SQL Concepts and Database Design

The Strayer Oracle Server may be used to test and compile the SQL Queries developed for this assignment. Your instructor will provide you with login credentials to a Strayer University maintained Oracle server.

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:

a. A description of the content for each field

b. The data type of each field

c. The format the data will be stored as in the field

d. The range of value for the field

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

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

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

b. Construct a query to show the expected payment date if invoices are due within 30 days of transaction. 

c. Construct a query that will show distinct area codes of the customers.

3. Create a plan of the necessary activities that would be required to implement a valid database design process by including the following:

a. Steps in the conceptual design stage

b. Steps in DBMS selection stage

c. Steps in logical design stage

d. Steps in physical design stage

e. Task details of each activity within each stage

Reference no: EM131420183

Questions Cloud

What are ges areas of diversification : MBA6999_W1_A3: A firm like GE should have a moderate-to-high level of diversification. What are GE's areas of diversification? Evaluate the potential strengths, weaknesses, opportunities, and threats of the diversification approach.
Americas in terms of culture-religion and technology : Explain the incredible impact that Spain's conquest had on Americas in terms of culture, religion and technology?
Discuss about the database connectivity methods : Database solutions today must be able to adapt and integrate among various computing applications. Determine at least three forms of database connectivity methods that can be used as an interface between applications. For each method you have chos..
Federal troops and states started to pass black codes : What happened in the South after the US government began to remove federal troops and states started to pass black codes?
Construct a query that will show the number of days : 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
What is the expected return of each asset : BU340- What is the price of the bond if the bond matures in 5, 10, 15, or 20 years? What is the expected return of each asset? What is the variance of each asset? What is the standard deviation of each asset?
Problem regarding the rise of the third reich : History Channel Documentary The Rise of the Third Reich. After watching this video What shocked you? What was unexpected? In what ways did Hitler win over the German people?
Discuss about the extensible markup language : XML provides a method for data to be transferred between systems. Specify at least three components of an XML document. Analyze how each component ensures data reliability and validation.Identify at least two e-Commerce systems that provide XML da..
What was the roosevelt corollary : What was the Roosevelt Corollary and how did it affect United States foreign policy? When should the United States practice polices of interventionism? When should the United States implement policies of isolationism?

Reviews

Write a Review

Database Management System Questions & Answers

  Design the screen with the actual values

Design the screen with the actual values. Students have to also create a data dictionary to explain what type of data is expected to display with the given input.

  Organize and implement rdbms for ercan airport management

design, organize and implement a RDBMS for Ercan Airport Management that will store, manipulate and retrieve all airport related information. The database you will design will organize the information about all the airplanes stationed and maintain..

  Case study on the application of data warehousing

Analyze the elements and factors required in work system method like work practices, participants, specific technology and infrastructure involved, and environments and strategy.

  Discuss the degree to which you believe your diagram reflect

Discuss the degree to which you believe your diagram reflects the database design. Create a database diagram with the entities and attributes that the scenario identified.

  Determine the best shipment of coal cars

The Southern Rail Company ships coal by rail from three coal mines to meet the demand requirements of four coal depots. The following table shows the distances from the mines to the various depots and the availabilities and requirements for coal

  What tables and columns would you create in relational data

You need to store information on the business's employees, inventory, and completed sales. You also need to account for the fact that each salesperson receives a different percentage of their sales in commission. What tables and columns would you ..

  Difference a database administrator and a database architect

Describe the differences between a database administrator and a database architect. How is your organization structured to handle the functions of these roles

  Explain issues to convert relationship for new cardinality

Using example of vehicles and drivers, explain issues to convert relationship for new cardinality including new relationships and attributes for the tables.

  What is normalization and explain why it is important

Write the SQL SELECT statement to display the average rent of the properties. What is normalization? Explain why it is important. List and describe the 4 components of a database system.

  Question 1 for each of the following tasks youll use the

question 1 for each of the following tasks youll use the xxxxxxxx database. you need only provide the query or command

  Explain how data is physically stored and accessed

Write clearly and concisely about relational database management systems using proper writing mechanics and technical style conventions.

  Join tables, and calculate aggregate sales for each product

I need to find what 11 products are the best sellers (the width, height, depth, item name, product id, sales, gross margin), using the attached database. The query needs to be limited so only the top 11's information is shown

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