Challenge

Project 2

Solved in the attached mysql file. I do not have python installed on my machine, so the code needed for question 4 is:

from sqlalchemy import create_engine

import pandas as pd

# make the database engine

engine = create_engine('C:\Users\nikhi\OneDrive\Desktop\Skill Lync\SQL\Local instance MySQL 80\Project 2 csv')

# set the 1000 limit

query = "SELECT * FROM your_table LIMIT 1000;"

# store the result as a dataframe

df = pd.read_sql_query(query, engine)

print(df)

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.