How to include this table:
+ ------------ + ----------------- +
| Category + Subcategory | + ------------ + ----------------- +
| Cat .......... + Persian ......... | | Cat .......... + Siamese ........ | | Cat .......... + Tabby ........... |
| Dog ......... + Poodle ..........
| Dog ......... + Boxer ............ |
+ ------------ + ---------------- +
on it to get the following:
+ ------------ + ----------------- +
| Cat ......... + Dog .............
+ ------------ + ----------- ------ +
+ Persian .. + Poodle ......... +
+ Siamese + boxer ........... +
+ Burmese + ........ ........... +
+ ------------ + ----------------- +
The source table is shown in the following MySQL query:
select c.CATEGORYNAME, sc.NAME from subcategorydefinition sc
join categorydefinition c on sc.CATEGORYID = c.CATEGORYID
where c.ISDELETED = 0
order by CATEGORYNAME, NAME ASC
And I want to display it in a (possibly) Gridview.
Hooray!
source
share