Givelify Interview Question

How would you sleep up a SQL query?