Forum Moderators: coopster
Cola 1
Cola 2
Cola 3
Cola 1
all with unique id's.
I would like to display the names of cola on the main page but I would not like duplicates displayed regardless of how many there are.
So for the db i just displayed i would like the main page to look like this.
Cola 1
Cola 2
Cola 3
Now the beginners approach (mine) was create a seperate database and if the type of cola is not in that db enter it if it is dont do anything (can't figure this out either :-S)
Is there an easier way then what I am trying?
Assuming the first case, you just need this
SELECT DISTINCT(cola_name) FROM colas;
Voila! One row per cola_name
Tom