Jump to content

Select 'brand' column and remove/condense duplicates


dachshund

Recommended Posts

I'm building a shopping site with various section - men's, women's, accessories etc.

 

What I need to do is find what brands are available in each section.

 

In the datatbase the item has item id, title, brand, price, section etc.

 

So I need something like

 

SELECT brand FROM store WHERE id LIKE $id AND section LIKE $section

 

That will select all the brands, but then I need to condense those down and find any duplicates. Any help would be amazing.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.