0

OK, Basically I am after some advice as I am not sure how to do this, basically I have a database full of car details, what I want to do is auto populate a page with a list of the manufacturers. I am thinking I could do this with group, although I do not particularly need to group the results just show the name of every manufacturer just once as a link.

Is group the best way to go?, or is there another way?.

Any advice would be appreciated.

Thanks

1 Answer 1

1

you can do a group by as you mentioned, or you can do distinct:

select distinct manufacturer from cars where 1

Read more about it here:

http://dev.mysql.com/doc/refman/5.0/en/distinct-optimization.html

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, never though of distinct, much appreciated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.