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