Write sql script which will query your zip-code-data table

Assignment Help Database Management System
Reference no: EM131538652

Assignment

1. Start with the Zip Code Data Excel file (attached to this assignment as "zip-code-data.xlsx")

2. Insert a record for city COLUMBIA, state MD, zip 21044, and assign your city a tourist rating of 6.

3. Save it as a .csv file, and import it into your MySQL. Make a new database called my_zip_codes and name the table in it zip_code_data.

4. Write an SQL script which will query your zip_code_data table as follows:

a. Select just the city and zip code and rating (not the state)
b. For which the tourist rating is a 4 or higher (this will include all ratings of 4)
c. Sort it descending by tourist rating (so the highest rating is the first record)
d. Put a comma between all fields
e. And write just those records into an outfile called "Louis_hotspots.csv".
(It's OK if you want to use a suffix, like v01, v02, etc. when debugging and then just leave the suffix on when turning it in.)

5. Name your script ‘tourist.sql' .

6. Make sure it produces a results file with your personalized information in it. If my name is Carrie, my script should produce a resulting file named "carrie_hotspots.csv". And Carrie's favorite city should be featured at the top line among the results.

7. It's OK if you want to use the sample scripts provided here as a starting place from which you do your import and your export. Remember your outfile will be somewhere else initially, and you'll need to pull it down with FileZilla.

8. TURN IN #1: attach your script (Note the requirement here is a full SQL script, with comments; see the SQL script rubric from Week 1 to see how to do this. It is OK if your script requires the user to have created, loaded, and activated the database before running the script, and simply issues the SQL commands. If this is the case, make sure your comments reflect that.) 9.

Attachment:- Zip-Code-Data.rar

Reference no: EM131538652

Questions Cloud

Sample of an oxide of antimony : A sample of an oxide of antimony (Sb) contained 19.75 g of antimony combined with 6.5 g of oxygen. What is the simplest formula for the oxide?
Determining the empirical formula : Analysis of a compound showed that it contained 82.6 % fluorine atoms and 17.4 % carbon atoms by mass. What is its empirical formula?
Positive value or a negative value : Predict whether the entropy change for each of the following reactions will have a positive value or a negative value.
How would you characterize modern attitudes toward miracles : Are there ways in which Christianity influences the development of modern American culture? Give example to explain
Write sql script which will query your zip-code-data table : Write an SQL script which will query your zip_code_data table as follows: Select just the city and zip code and rating. For which the tourist rating is a 4.
The earnings per share will : The earnings per share will
What is your rate of return on the fund : What is your rate of return on the fund if you sell your shares at the end of the year?
Write a one-page action plan in memorandum format : Many accounting and accounting-related professionals are skilled in financial analysis, but most are not skilled in manufacturing.
How tcp-ip maps to the osi model : Using either the OSI Reference Model or the TCP/IP Protocol Suite. This is the big picture explanation of the TCP/IP protocol and how it maps to the OSI model.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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