This project demonstrates how SQL can be used to investigate security events and identify employee systems requiring security updates. Using SQL filtering techniques, I analyzed login activity and employee records to support security investigations.
- SQL
- Security Log Analysis
- Data Filtering
- Incident Investigation
- Cybersecurity Fundamentals
- Database Querying
Investigate failed login attempts that occurred after 18:00.
SELECT *
FROM log_in_attempts
WHERE login_time > '18:00'
AND success = FALSE;Investigate login attempts that occurred on the dates associated with a suspicious event.
SELECT *
FROM log_in_attempts
WHERE login_date = '2022-05-09'
OR login_date = '2022-05-08';Identify login attempts originating from countries outside of Mexico for further investigation.
SELECT *
FROM log_in_attempts
WHERE NOT country LIKE 'MEX%';Identify employees in the Marketing department located in the East building whose systems require updates.
SELECT *
FROM employees
WHERE department = 'Marketing'
AND office LIKE 'East%';Locate employees in the Finance and Sales departments whose devices require a security update.
SELECT *
FROM employees
WHERE department = 'Finance'
OR department = 'Sales';Identify employees outside the Information Technology department whose systems require a security update.
SELECT *
FROM employees
WHERE NOT department = 'Information Technology';This project demonstrates how SQL can be used to support cybersecurity investigations by filtering and analyzing login activity and employee records.
Through these exercises, I practiced:
- Using WHERE clauses
- Applying AND, OR, and NOT operators
- Filtering patterns with LIKE
- Investigating suspicious login activity
- Identifying systems requiring security updates





