SQL Challenges · THE CHRISTMAS HEIST!

Searching the Evidence Logs

Difficulty: medium

Detective Quacker's phone rings. "Librarian Lucy here! I heard about the thefts and Coach Waddles' suspicious GPS patterns. I've digitized years of delivery activity descriptions from the warehouse archives. Something doesn't add up - search through the activity_description field for any mention of 'anonymous' OR 'secret'. These keywords might reveal hidden charitable activities or coded criminal messages. How many suspicious activity records contain these words?"

Your task

Count how many activity records contain the word "anonymous" OR "secret" in their descriptions. You will be working with the `delivery_activities` table.

Tables

delivery_activities (2500 rows)

columntype
activity_idINTEGER
delivery_idINTEGER
activity_descriptionVARCHAR
activity_timeTIMESTAMP
districtVARCHAR
notesVARCHAR

Database: https://dbquacks.com/data/databases/christmas_local.duckdb

This page as markdown: https://dbquacks.com/challenges/christmas/5.md

Play this challenge →

More: practice SQL exercises online · SQL interview questions