Project Overview

Welcome to the SQL Survival Challenge: Last City on Earth! In this adventure-themed project, you will step into the shoes of a data analyst tasked with managing and analyzing the data of humanity’s final refuge—the Last City. As the world faces a cataclysmic event, effective data management becomes crucial to ensure the survival and prosperity of the city’s inhabitants.

Your mission is to navigate through various data scenarios, optimize resource allocations, respond to emerging threats, and maintain the city’s infrastructure. Through this hands-on experience, you’ll enhance your SQL skills while contributing to the Last City’s resilience.


Objective

By the end of this project, you will be able to:

Tasks

Embark on the following tasks to ensure the Last City’s survival. Each task is designed to guide you through critical data analysis scenarios using SQL. After completing each task, you can check your answers using the provided sample queries.

Task 1: List All Citizens in the City

Objective: Retrieve a list of all citizens residing in the Last City.

Instructions:

Task 2: Allocate Resources to Facilities

Objective: Allocate necessary resources to each facility based on their requirements.

Instructions:

Task 3: Identify Facilities Low on Resources

Objective: Determine which facilities are low on specific resources to prioritize allocations.

Instructions:

Task 4: Respond to Imminent Threats

Objective: Assign appropriate staff members to respond to high-severity threats.

Instructions:

Task 5: Analyze Resource Consumption Rates

Objective: Analyze how quickly resources are being consumed to predict future needs.

Instructions:

Task 6: Plan for Future Resource Needs

Objective: Based on consumption rates, forecast the required quantities of resources for the next month.

Instructions:

Task 7: Maintain Facility Operations

Objective: Ensure that all facilities are operational by scheduling necessary maintenance.

Instructions:

Task 8: Ensure Security of Resources

Objective: Monitor and enhance the security of critical resources to prevent theft or sabotage.

Instructions: