Pupeno
SELECT `Plans`.`id`, `Plans`.`name`, count(*) as 'count' FROM `Plans` JOIN
`TechsPerPlan` ON `Plans`.`id` = `TechsPerPlan`.`plan` WHERE
`TechsPerPlan`.`id` IN (17, 48, 54, 64, 75, 13, 30, 37, 45, 55, 65, 76, 11,
33, 46, 58, 68, 80) AND count = 3 GROUP BY `Plans`.`id`
but it selected
I have esentially this query (the list of integers may differ):
SELECT `Plans`.`id`, `Plans`.`name`, count(*) as 'count' FROM `Plans` JOIN
`TechsPerPlan` ON `Plans`.`id` = `TechsPerPlan`.`plan` WHERE
`TechsPerPlan`.`id` IN (17, 48, 54, 64, 75, 13, 30, 37, 45, 55, 65, 76, 11,
33, 46, 58, 68,
Pupeno [EMAIL PROTECTED] wrote on 07/26/2005 03:53:10 PM:
I have esentially this query (the list of integers may differ):
SELECT `Plans`.`id`, `Plans`.`name`, count(*) as 'count' FROM `Plans`
JOIN
`TechsPerPlan` ON `Plans`.`id` = `TechsPerPlan`.`plan` WHERE
`TechsPerPlan`.`id` IN (17,
Hi,
Look at having :
having count(*) 3 for example
Mathias
Selon Pupeno [EMAIL PROTECTED]:
I have esentially this query (the list of integers may differ):
SELECT `Plans`.`id`, `Plans`.`name`, count(*) as 'count' FROM `Plans` JOIN
`TechsPerPlan` ON `Plans`.`id` = `TechsPerPlan`.`plan`