Construct a query that will show the number of days

Assignment Help Database Management System
Reference no: EM13761770

Assignment:SQL Concepts and Database Design

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

2. Imagine that you are asked to identify the number of days that exist between the firstinvoice 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 validdatabase 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: EM13761770

Questions Cloud

Write an essay on love in la and a good man is hard to find : Write an essay on the stories "Love in L.A." and "A Good Man Is Hard to Find". Remember to begin your paper with an engaging introduction and clear thesis statement.
Manage the communication and operation of a virtual team : What are the challenges teams face when part of a virtual team? As a leader, how can you manage the communication and operation of a virtual team?
Describe ethical considerations with regard to marketing : Describe ethical considerations with regard to marketing to children. When the marketers pitch includes a cause component, such as a breakfast cereal that promises to provide breakfasts to undernourished school children, explain whether this is ethic..
Define the networking principles : The selected organization should be large enough to allow reasonable exercise of the networking principles in the course assignments.
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
Explain your departments responsibility related these issue : The BP and Toyota cases concern companies that acted in ways that would clearly cause harm to the public and/or the planet. To do so, individuals at many levels played a part. If you worked in the marketing department of BP or Toyota, explain your de..
Describe how employers can control labor costs : Describe how employers can control labor costs. Include in your response what might be some ot the affects from these control methods (either positive or negative)
Distinguish between global-expatriates-local nationals : Distinguish between global, expatriates, local nationals, and third country nationals. Select one and provide an example when it would be appropriate to use that type of resource and why.
Availability and portability vs. privacy : Analyze the evidence, arguments, and conclusions in your research that support your position.

Reviews

Write a Review

Database Management System Questions & Answers

  Design database in microsoft access

Access will draw a line, called_______a, between matching fields in two tables, indicating that the tables are related. You can then select fields from either table. Access joins the tables automatically.

  The database dish.xlsx contains a transaction history

The database Dish.xlsx contains a transaction history describing more than 4,000 purchases of detergent

  A database to keep track of information for her business

A database to keep track of information for her business

  Write a function checksmaller

Write a function 'Max' that takes an int array and the size of the array as input and returns the largest element of the array. The function should look like the following.

  Construct a use-case diagram

Construct (i) a use-case diagram (ii) a class diagram (iii) System Sequence Diagram (iv) detailed Sequence Diagram or diagrams as appropriate and (v) a state chart for a car object/class according this scenario. Include appropriate properties for ..

  Compute numbers of married men-single men from table

Compute the numbers of married men, single men, married women and single women. Print these numbers on a student summary report.

  Imagine that you work for a finance industry-based

imagine that you work for a finance industry-based organization. your organization is looking to submit its database

  You must have at least these entities region factory

you must have at least these entities region factory employee department training class. you should use the attributes

  Brief synopsis analyzing the detailed requirements

Provide a brief synopsis analyzing the detailed requirements of your prototype database design and design a database prototype that includes diagrams, data dictionary, design decisions, limitations, etc.

  Suppose that you are the database developer for a local

suppose that you are the database developer for a local college. the chief information officer cio has asked you to

  How database systems support enterprise and web-based app

Summarize the difference between on-line transaction processing (OLTP) and online analytic processing (OLAP), and their relationship among business intelligence, data warehousing and data mining.

  What is the value of the symmetric key

Suppose Fred sees your RSA signature on m1 and m2, (i.e., he sees (m1d mod n) and (m2d mod n)). How does he compute the signature on each of m1j mod n (for positive integer j), m1-1 mod n, m1 x m2 mod n, and in general m1j m2k mod n (for arbitrary..

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