Site icon Tutor Bin

MIS 470 Colorado State University GC SQL Programming Code

MIS 470 Colorado State University GC SQL Programming Code

Description

Complete the Code of a Given PostgreSQL SQL Script File to Calculate Five (5) Statistical Measures of a PostgreSQL Relational Table 

Relational databases and their SQL programming language provide a solid platform for data science practices. With SQL and its related technologies, we can collect, explore, prepare, build and evaluate models from relational data.

In this assignment, you will use SQL and the PostgreSQL relational database management system to complete a given SQL script file to calculate five (5) statistical measures of the relational table created by the script file. You will also provide a one-page summary of what you did, an interpretation of the results you obtained, and a reflection on your learning experience.

To prepare for this assignment:

Review the module’s interactive lecture and its references.

Download and install the PostgreSQL relational database management system. Instructions on downloading and installing PostgreSQL are provided in the following section of the LinkedIn Learning course: PostgreSQL Essential Training (Links to an external site.):

  1. Getting Started with PostgreSQL
  2. Download the week 7 critical thinking SQL script file: MIS470-W7-CT.SQL Download MIS470-W7-CT.SQL.

View the videos from the following section of the LinkedIn Learning course: SQL for Statistics Essential Training (Links to an external site.):

Basic Descriptive Statistics

To complete this assignment:

  1. Complete the given SQL Script file (MIS470-W7-CT.SQL) to calculate five (5) statistical measures of the relational table created by the script file according to the steps below. Give the completed script file a name that includes your first name and last name like this Solution-W7-FirstName-LastName.SQL:
  2. Create a PostgreSQL database called HR.

In the HR database, load the provided SQL Script file (MIS470-W7-CT.SQL) and run its code. The script file creates and populates a relational table called employee_info that holds information about employees of a company.

Add SQL code to calculate the average age for all employees in the employee_info table.

Add SQL code to calculate the range of age for all employees in the employee_info table.

Add SQL code to calculate the sample standard deviation of age for all employees in the employee_info table.

Add SQL code to calculate the population standard deviation of age for all employees in the employee_info table.

Add SQL code to calculate the number of employees per city and state where the company operates. Your output should look something like this:

Execute your *.SQL script file and display the results of its execution.

  1. Take screenshots, showing current date and time, to demonstrate successful completion of your work. The screenshot should show the SQL commands you applied and the results you obtained. Do not capture trial and error results. Only your final results should be captured.

Summarize your work in one page in which you explain what you did, interpret your results, and reflect on your experience:

Explain how you completed this assignment and how you resolved the issues you faced, if any.

Interpret the results you obtained from your actions including a discussion of the pattern you see from the three confidence intervals and an explanation of why such a pattern exists. 

  1. Reflect on your experience with this assignment and the lessons you learned.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version