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