Hi, I Have 2 tables. First name of this tables is news_categories with one record: News. Strucutre this table ID and name_categories Second name of this tables is news_subkategorie with two records : With country and with world. Strucutre ID_Subcategories and name_subcategories I will receve effects:
News
--With country
--With world
How i write in Select Command ?
SELECT [ID_subcategries], [Name_subcategories], [ID] FROM [db_subcategories], [db_categories] WHERE (??)
That is not easy but the link below will take you in the right direction. Hope this helps.
http://www.yafla.com/papers/sqlhierarchies/sqlhierarchies.htm#Figure1
No comments:
Post a Comment