Skip to content
/ exam-1 Public template
forked from Arnab-Gupta/exam-1

Some practice material for the first exam.

License

Notifications You must be signed in to change notification settings

aanchal22/exam-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practice Exam #1

The solutions content of this file below will be updated according to the instructions.

Solutions

The following sections contain a report on the solutions to each of the required components of this exam.

Data munging

The code in the Python program, solution.py, contains the solutions to the data munging part of this exam.

Spreadsheet analysis

The spreadsheet file, wifi.xslx, contains the solutions to the spreadsheet analysis part of this exam. In addition, the formulas used in that spreadsheet are indicated below:

  1. Total number of free Wi-Fi hotspots in NYC
Place your formula here.
  1. Number of free Wi-Fi hotspots in each of the 5 boroughs of NYC.
Place your formulas here - one on each line.
  1. Number of free Wi-Fi hotspots provided by the Brooklyn Public Library in each of the zip codes of Brooklyn.
Place your formula for just the zip code 11201 here.
  1. The percent of all hotspots in Brooklyn that are provided by the Brooklyn Public Library.
Place your formula here.

SQL queries

This section shows the SQL queries that you determined solved each of the given problems.

  1. Write two SQL commands to create two tables named hotspots and populations.
Place your first command here.
Place your second command here.
  1. Import the data in the wifi.csv and neighborhood_populations.csv CSV files into these two tables.
Place your first command(s) here.
Place your second command(s) here.
  1. Display the five zip codes with the most Wi-Fi hotspots and the number of Wi-Fi-hotspots in each in descending order of the number of Wi-Fi-hotspots.
Place your query here.
  1. Display a list of the name, location, and zip code for all of the free Wi-Fi locations provided by Transit Wireless in Manhattan, in ascending order of zip code.
Place your query here.
  1. Display the names of each of the boroughs of NYC, and the number of free Wi-Fi hotspots in each.
Place your query here.
  1. Display the number of wifi hotspots in Fort Greene, Brooklyn along with the population of Fort Greene, Brooklyn.
Place your query here.
  1. Display the number of wifi hotspots in each of the 5 NYC boroughs, along with the population of each borough.
Place your query here.
  1. Display the names of each of the neighborhoods in which there exist Wi-Fi hotspots, but for which we do not have population data.
Place your query here.
  1. Write an additional SQL query of your choice using MySQL with this table; then describe the results

Write a description of the query here.

Place your query here.

Normalization and Entity-relationship diagramming

This section contains responses to the questions on normalization and entity-relationship diagramming.

  1. Is the data in wifi.csv in fourth normal form?
Enter your response here
  1. Explain why or why not the wifi.csv data meets 4NF.
Enter your response here
  1. Is the data in neighborhood_populations.csv in fourth normal form?
Enter your response here
  1. Explain why or why not the neighborhood_populations.csv data meets 4NF.
Enter your response here
  1. Use draw.io to draw an Entity-Relationship Diagram showing a 4NF-compliant form of this data, including primary key field(s), relationship(s), and cardinality.

Placeholder E-R Diagram

About

Some practice material for the first exam.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%