|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 11/03/2009 at 04:33AM PST, ID: 24866786 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
DELETE a.*, t.*, c.*
FROM (ig_imagegall a LEFT JOIN ig_imagecomm c ON a.ID = c.ImageID)
LEFT JOIN ig_testimonials t ON a.ID = t.ImageID
WHERE a.ID IN (<cfqueryparam value="#getImg2.ID#" cfsqltype="cf_sql_numeric" list="yes">)
another Query:
SELECT ImageID, CatName, (SELECT count(id)
FROM
ig_imageGall AS images
WHERE
valid = <cfqueryparam cfsqltype="cf_sql_numeric" value="1">
AND images.category = outimages.catName) AS categoryCount
FROM
ig_imagegallCat AS outimages
ORDER BY
CatName
ASC
|
Advertisement