Associate
- Joined
- 2 Oct 2003
- Posts
- 2,121
- Location
- Chester
Hello all, little tricky one to test the men from the boys! It's been picking my brain for the last week but no joy!
What I want to do is search a `comments` table WHERE the last `comment` for each unique `customer_id` is `LIKE %ERROR%` and WHERE there is no more than 2 `LIKE %APPROVED%`.
Alternatively, any PHP guidance on how to accomplish this.
Remember, result must not have more than two %APPROVED% for same customer_id.
I really hope you can understand what i'm trying to do.
Many thanks
What I want to do is search a `comments` table WHERE the last `comment` for each unique `customer_id` is `LIKE %ERROR%` and WHERE there is no more than 2 `LIKE %APPROVED%`.
Alternatively, any PHP guidance on how to accomplish this.
Remember, result must not have more than two %APPROVED% for same customer_id.
I really hope you can understand what i'm trying to do.
Many thanks
