InstaMed interview question

Basic SQL operation. Test cases.