Design a relational database so that it is in three-nf


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)

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

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required 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.

Solution Preview :

Prepared by a verified Expert
PL-SQL Programming: Design a relational database so that it is in three-nf
Reference No:- TGS02957908

Now Priced at $45 (50% Discount)

Recommended (96%)

Rated (4.8/5)