Construct a query that will show distinct area codes

Assignment Help PL-SQL Programming
Reference no: EM131870898

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 page paper in which you:

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.

The specific course learning outcomes associated with this assignment are:

• Design a relational database so that it is at least in 3NF.

• Prepare database design documents using the data definition, data manipulation, and data control language components of the SQL language.

• Explain the key principles of data security and identify data security risk and violations in data management system design.

• Use technology and information resources to research issues in the strategic implications and management of database systems.

• Write clearly and concisely about topics related to the strategic planning for database systems using proper writing mechanics and technical style conventions.

Reference no: EM131870898

Questions Cloud

Determine all possible genotypes of the offspring : Determine all possible genotypes of the offspring of these parents:
Expected return and standard deviation of portfolio : Calculate the expected return and standard deviation of a portfolio that is 50% invested in stock A and 50% invested in stock B.
Discuss approaches of the development of strategy : Evaluating the data collected from environmental analysis, the corporate executives of F&S Pharma Inc. realized that it was the right time to expand.
At what annual rate did the coin appreciate : At what annual rate did the coin appreciate from its first minting to the 1973 sale?
Construct a query that will show distinct area codes : Construct a query that will show distinct area codes of the customers. Construct a query to show the expected payment date if invoices are due within 30 days.
Possible genotypes and the corresponding phenotypes : A woman, homozygous for short fingers, marries a man with normal fingers. What are all the possible genotypes and the corresponding phenotypes of the offspring.
Compute all of the materials and labor : The predetermined manufacturing overhead rate is $9.23 per direct labor hour ($14.76 ÷ 1.6). Compute all of the materials, labor, and total overhead variances
What is the expected market risk premium : Rate of Return If State Occurs State of Probability of Economy State Stock. what is the expected market risk premium?
Items of which four are defective : Let two items be chosen at random from a lot containing 12 items of which four are defective. Let A = {both items are defective} and B = {both items are nondefe

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Provide sql statements to create the database

Provide SQL statements to create the database and populate it with sample data (at least four rows per table).

  Specify the sql queries to retrieve a list of all doctors

Specify the SQL queries to retrieve A list of all doctors and the number of patients that were born before 01/01/1994.

  Describe outer joins in databases

USe an outer join. You must include the condition on OrderDate in the ON clause of the outer join.

  Write sql queries using between, like and union

write SQL queries using Between, Like and Union

  Prepare a risk information sheet for five potential risks

Using the sample shown below, create a Risk Information Sheet for at least five potential risks that might be encountered during the conversion. At least three of the five risks you choose should be project management related.

  Writing and execuinge sql command

The table name will be METALS and will be used to store description of various metals. Following offers some additional direction on how table must be created.

  Write sql queries to produce list occurrences of adv pastels

Write SQL queries to produce the List all occurrences of Adv. Pastels. Include all associated fields for each occurrence of the class.

  Program that opens a text file and reads contents in stack

Requirement: stack class implementation (with push/pop) to accept input file of any size

  Write insert statement that adds row to the categories table

Write an INSERT statement that adds this row to the Categories table: category_name: Brass and Code the INSERT statement so MySQL automatically generates the category_id column.

  Write command that will remove barry from the student table

Write a command that will remove Barry from the Student table. Write statement to add an attribute, Class to the Student table? What is the smallest section number used in the FALL-2014 semester?

  Write a sql statement to return some columns

Prepare this SQL query and sort the result set by CategoryName and then by ProductName in ascending order- Write a SQL statement to return some columns

  Write sql query that you would use to search for any books

Write an SQL query that you would use to search for any books by J.J. Parsons in a table called BOOKS, where author's names are stored in a field called Title.

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