Meta·Software Engineer·Technical Phone Screen
- Given a library database, write a SQL query to count books that are currently checked out and in good condition.
- Among the checked-out, good-condition books from the previous query, what percentage have been renewed more than twice? Use that same subset as the denominator.
- Return the top 3 book titles (or IDs) that have more than 10 copies and the longest cumulative lending time summed across all their loans.
- Find the member and referrer pair with the largest difference in the number of reservations each has made, and return that pair along with the difference.
“Warm-up question, felt fine.”