This project demonstrates a robust MySQL-based system for managing and analyzing Department of Homeland Security (DHS)-style immigration and border security data. It covers the full spectrum from data schema design to performance optimization, geospatial querying, and analytical reporting.
The database (dhs_data) contains the following
tables:
EntryLogs – Tracks individual border crossings with
timestamps and locations.VisaApplications – Stores applicant data, including
visa type, approval status, and submission date.SecurityAlerts – Contains threat-level alerts per
region and incident descriptions.GeospatialData – Stores coordinates and risk levels for
various border locations.VisaApprovalStats – A SQL View summarizing visa
approval data.GetAlertsByRegion – A stored procedure for filtering
alerts by region.dhs_data.sql in sequence to:
SELECT LocationName, RiskLevel, ST_AsText(LocationPoint)
FROM GeospatialData
ORDER BY ST_Distance_Sphere(LocationPoint, ST_GeomFromText('POINT(40.7128 -74.0060)'))
LIMIT 5;