I am sure I am looking at this in the wrong way.
I would like to hold a restaurant menu in a database and display it. For example, I have created a table similar to the one below:
Columns:
Food_Item | Food_Description | Food_Price | Food_CAT.
Data:
Salad | Refreshing Salad | 5.25 | Starters
Prawn Cocktail | Lovely Prawns | 4.75 | Starters
Tomato Soup | Cream of tomatoe | 4.50 | Soups
Steak | Lovely Rump Steak | 10.95 | Mains
Fish & Chips | Classc dish | 8.75 | Mains
What I am trying to achieve is a menu layout, where the food_CAT acts as the header and then the different dishes are presented below, for example:
Starters
Salad - 5.25
Prawn Cocktail - 4.75
Soups
Tomato Soup - 4.50
Mains
Steak - 10.95
Fish & Chips
etc..
Is there an easy way to do this, so that I don't have the food_cat header above each dish, only over the first one? I thought I could use DISTINCT, however from reading other posts, I understand it's near impossible to DISTINCT one column.
Hope somebody can help.
Regards, Oliver