Colorado ITS410 Module 6 Integrating MySQL Table Data HW

Question # 00651589
Subject: Computer Science
Due on: 12/29/2023
Posted On: 12/29/2023 01:07 AM
Tutorials: 1
Rating:
4.9/5
Question Dot Image

ITS 410 Colorado State University Module 6 Integrating MySQL Table Data HW

Choose one of the following two assignments to complete this week. Do not do both assignments. Identify your assignment choice in the title of your submission.

 

OPTION #1: INTEGRATING MYSQL TABLE DATA WITH A PYTHON SCRIPT

In this assignment, you will write a Python script to increase the population of each city in the world_x database by 10% (rounded).

First, add a new column to the world_x city table using the following MySQL command:

  • ALTER TABLE `world_x`.`city` ADD COLUMN `Population` DOUBLE NULL DEFAULT NULL AFTER `Info`;

The existing population data are stored as JSON datatype in the city table in a field named Info. You learned about JSON data types in Module 2. To obtain the population data from the Info column in the city table, run the following MySQL command:

  • select info->’$.Population’ from city

Your Python script should do the following:

  • Copy the population data from the Info column into the Population column,
  • Increase the population by 10% in the Population column, and
  • List the population before the increase and the population after it was increased.

Submit your Python script and Python script output as two separate text files included in a zip file. Submit your zip file to the Module 6 folder. Provide a detailed technical report on the steps needed to integrate Python and MySQL. In addition, provide details on how you iterate through a JSON field in a Python script.

OPTION #2: INTEGRATING MYSQL TABLE DATA WITH A PYTHON SCRIPT

Using the classicmodels database you installed in Module 1, write a Python script that deducts one percent from the amounts paid for purchases made in the month of December. The amounts customers paid are listed in the payments table. The output of your script should show the payments before the rebate and the payments after the rebate.

Submit your Python script and Python script output as two separate text files included in a zip file. Submit your zip file to the Module 6 folder.

Provide a detailed technical report on the steps needed to integrate Python and MySQL. In addition, provide details on how you implement a table join in a Python script. Show an example of such a join.

Dot Image
Getsolution Posted By :
Questions: 15503 Tutorials: 15502
Tutorials for this Question

Colorado ITS410 Module 6 Integrating MySQL Table Data HW

Tutorial # 00650480
Posted On: 12/29/2023 01:07 AM
Feedback Score: Not rated yet!
Purchased By: 2
Getsolution
Posted By:
Questions:
15503
Tutorials:
15502
Report this Tutorial as Inappropriate
Tutorial Preview
The solution of Colorado ITS410 Module 6 Integrating MySQL Table Data HW...
Attachments
Colorado_ITS410_Module_6_Integrating_MySQL_Table_Data_HW.ZIP (18.96 KB)

Great! We have found the solution of this question!

Related Questions
Examine the several different types of data insights that occur
Question Examine the several different types of data insights that occur in big data analytics:  ? Offer novel knowledge  ? Provide causation relationships  ? Add a competit …
Computer science - Is virtualisation cost effective
Computer science question Is virtualisation cost effective and does it support green IT? Contents Introduction Is Virtualisation cost effective? Running out of space? Needing Virtualisa …
Studying Computing involves developing both subject
Studying Computing involves developing both subject-specific and transferable skills. Describe the skills you have used prior to university, and discuss how you would expect those skills to develop wh …
Computer Science - Discuss the critical characteristics
Computer Science Question Assignment 1 - Question 1: Discuss the critical characteristics of communication channels in data communications. Explain how bandwidth and communication medium affe …
List and explain two browser add-ons(plug-ins)that improve the security
1- List and explain two browser add-ons(plug-ins)that improve the security of a user’s browser. Why are these features not built-into the browser? 2- What are two security risks associated wi …
How are browsers being used to mine crypto currency
Part A: How are browsers being used to mine crypto currency? (1 pt) Find an example of malvertising. Provide a screen shot of the malvertising. (2 pts) Provide the details on how and where you …
What are the seven categories of cybersecurity functions in the NICE
security awareness What are the seven categories of cybersecurity functions in the NICE Cybersecurity Workforce Framework (https://www.nist.gov/itl/applied-cybersecurity/nice/resources/nice-cybe …
The Computer Mouse - Once a nondescript box perched on a large
The Computer Mouse Once a nondescript box perched on a large ball bearing, today the computer mouse comes in a wide range of shapes with a variety of capabilities. There are cordless mice, ergonomi …
CMSC350 Program that accepts an arithmetic expression
CMSC350 Program that accepts an arithmetic expression The second programming project involves writing a program that accepts an arithmetic expression of unsigned integers in postfix notation and bu …
Week 6 Discussions - Local Security Good Practices
Week 6 Discussions Please respond to at least two main topics  1. Local Security Good Practices Discuss in detail several effective local security practices to harden your Linux distribu …
Recent Questions
Walden HLTH6475 Complete Course Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 1 Discussion INDIVIDUAL RESPONSIBILITY VERSUS VICTIM BLAMING IN HEALTH PROMOTION Part of what makes a discussion a discussion and not a lectur …
Walden HLTH6475 All Quizzes Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 1 Quiz Question 1 Which factors have been found to influence behavior? Socioeconomic Status Skills Culture Attitude Gender A …
Walden HLTH6475 Module 6 Quiz Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 6 Quiz Question 1 Which method allows study participants to tell their stories?  Observations In-depth individual interview &nbs …
Walden HLTH6475 Module 5 Quiz Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 5 Quiz Question 1 What alternative term has been suggested recently for hard-to-reach? Marginalized Inaccessible Hard to access Ha …
Walden HLTH6475 Module 4 Quiz Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 4 Quiz Question 1 Outreach workers from the CeaseFire program spent a total of 500 combined hours with program participants during the first y …
Walden HLTH6475 Module 3 Quiz Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 3 Quiz Question 1 Which of the following is the construct of the Theory of Reasoned Action that explains behavior based on what we think other …
Walden HLTH6475 Module 2 Quiz Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 2 Quiz Question 1 If the program is aimed at a true population, the term is called ______________. Intended population Intended audience …
Walden HLTH6475 All Assignments Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 2 Assignment LANNING MODELS ARTICLE REVIEW The published literature is rich with examples of health promotion programs that have utilized the …
Walden HLTH6475 Module 6 Assignment Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 6 Assignment EVALUATION PLAN Once the program has been designed, it is time to consider how the program will be evaluated. To design an evalu …
Walden HLTH6475 Module 5 Assignment Latest 2024
HLTH6475 Prgm Plan, Implement & Eval Module 5 Assignment  DEVELOPING EVALUATION QUESTIONS Evaluation takes place at various points within a program's life cycle. It requires di …