This is wrong. The right adjective clause would be;
The customers who came in before 5:00 got a discount. :)
8.0m questions
10.7m answers