In SQL, how to format values so I have column1value.column2value -
i new sql , have problems formatting. in column1, have categories living, food, transportation , in each category, have subcategories. example, food.lunch, food, grocery.
now want have new column called detailed expenses in want display category.subcategory
for example, food.lunch
how can achieve this? help?
you need structure table (not oop approach)
categories ----------------------- id name parent 1 food 0 2 lunch 1 ... 3 category 0 4 subcategory 3
Comments
Post a Comment