Zendesk Interview Question

How would you optimise a slow SQL query?