Coder Social home page Coder Social logo

ndabdulsalaam / mystery-in-fiftyville Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 154 KB

Welcome to my SQL research project! I used SQL to analyze and investigate a large dataset to find patterns, trends, and insights that might take time, if not impossible, to discover from the raw data.

Home Page: https://ndabdulsalaam.github.io/

License: MIT License

sqlite3 data-analysis harvardcs50 investigative-journalism datamining joins slq sql-views

mystery-in-fiftyville's Introduction

A Mystery in Fiftyville

Overview The CS50 Duck has been stolen! The town of Fiftyville has called upon you to solve the mystery of the stolen duck. Authorities believe that the thief stole the duck and then, shortly afterwards, took a flight out of town with the help of an accomplice. Your goal is to identify: 1

  • Who the thief is,
  • What city the thief escaped to, and
  • Who the thief’s accomplice is who helped them escape

All you know is that the theft took place on July 28, 2021 and that it took place on Humphrey Street.

How will you go about solving this mystery? The Fiftyville authorities have taken some of the town’s records from around the time of the theft and prepared a SQLite database for you, fiftyville.db, which contains tables of data from around the town. You can query that table using SQL SELECT queries to access the data of interest to you. Using just the information in the database, your task is to solve the mystery.

Queries

  1. Query crime_scene_reports to confirm that the information supplied is correct for the data. The insight here is that the crime took place at 10:15 am and everyone mentioned the bakery

  2. Find out from the interviews table where the transcript contains ‘bakery’. A summary of the information here is listed below:
    • One of the thieves withdrew money from the ATM on Leggett Street earlier that morning
    • They left the bakery at about 10:25 am (10 minutes later after the incident)
    • They plan to leave town with the earliest flight the following morning (from conversation < 60mins at about 10:25 am)

  3. Then, these were used to form the CTE queries as follows. The queries answer the following:
    • The person that used the atm
    • Those that made the calls
    • Car owners that fit the description
    • Passengers who board flights
    • Airports involve

  4. Print the suspect table from the subqueries

  5. Finally, format the output and print the result

Acknowledgment

mystery-in-fiftyville's People

Contributors

ndabdulsalaam avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.