SQL query performance

Medium4 min read