angelll, i'm too lazy to check out your link as ee is operating so slow for me right now... if this duplicates your answer there, please accept my apologies:
but you can try:
select t1.itemID, t1.itemName, COUNT(DISTINCT t2.itemID) as numComments, COUNT(DISTINCT t3.itemID) as numLinks
FROM items t1
LEFT JOIN comments t2 ON t1.itemID = t2.itemID
LEFT JOIN links t3 ON t1.itemID = t3.itemID
GROUP BY t1.itemID
Main Topics
Browse All Topics





by: angelIIIPosted on 2002-09-18 at 08:43:30ID: 7288621
Hi, e.com/Data bases/Q_20 360535.htm l
your original question:
http://www.experts-exchang
Not sure if my comment there helps, but hope you find the best answer for you!
CHeers