categories for which there are no items --
Code:
select c.categoryId
, c.categoryTitleEnglish
, c.categoryTitleFrench
, c.categoryDetailsEnglish
, c.categoryDetailsFrench
, c.imageURL
from category as c
left outer
join items as i
on c.categoryId
= i.categoryId
where i.categoryId is null
works prior to 4.1 too
