Hi,
i have 2 tables , a table for my articles and a table for categories !
i need to show 5 latest posts in articles for each cat in a page
for now i get cat names by this query :
Code:
select c_id,c_name from _cats order by c_name
loooooop
Print the name : c_name
now , i loop in the query and i get articles by this query :
Code:
select TOP 5 a_title from _articles where a_cat = prevquery.c_id order by a_date desc
Print article : a_title
end looooop
now i need to combine these 2 queries in one query .
i tried to combine group by and LIMIT but no results , any suggestion ?
also i cannot use LIMIT in subquery ! the i am complicated !