by AskAI

Solutions:

Check these solutions from our community and artificial intelligence:
The candidate's solution is correct and demonstrates a level of completeness. The solution solves the problem and uses the correct SQL syntax. The candidate's approach is efficient because it only requires one query to the database.