Public feed #893015

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-05 20:50 UTC
rendered paste body
SELECT
   c.id AS cat_id,
   c.title AS cat_title,
   s.title AS sub_title
FROM category c
LEFT JOIN subcategory s ON s.id IN
   (SELECT id FROM subcategory WHERE category_id = c.id LIMIT 2)
ORDER BY c.title