I am a little fuzzy on this, and haven't been able to find any really good info.
The first thing I want to do is do a LIKE select... easy enough
Select * from producers where name like '" & request("name"
& "%'"
Here is my tricky part... Each producer has multiple clients, and when I return the results i would like a count of all the clients the producer has. Keep in mind the clients are in a seperate table joined by an ID
So, I thought there would be another select somewhere within like
Select count(*) from clients c where c.id=p.id
but i am not sure how to join the selects and returning the name, and the count value...
Any ideas?
FC
The first thing I want to do is do a LIKE select... easy enough
Select * from producers where name like '" & request("name"
Here is my tricky part... Each producer has multiple clients, and when I return the results i would like a count of all the clients the producer has. Keep in mind the clients are in a seperate table joined by an ID
So, I thought there would be another select somewhere within like
Select count(*) from clients c where c.id=p.id
but i am not sure how to join the selects and returning the name, and the count value...
Any ideas?
FC