944,124 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 574
  • MySQL RSS
Oct 19th, 2009
0

Newbie Help with SQL Filter/Search

Expand Post »
Hi all,

I'm a newbie in sql, please can someone help me out in constructing a query. What I want to achieve is to have filter/search menu with a list of the different options/optionsvalues that applies to a particular category of products and a count of the products that possess each attribute.
Say under COLOR we have Black (2), Blue(17), Green(21) and under SIZE we have 10m(11), 20m(15). My tables areas follows:

categories => catid, parentid
products => productid, catid
options => optionsid, options_name (e.g Colour, Size)
optionsvalues => optionsvaluesid, optionsvalues_name (e.g Black, Blue, Green, 10m, 20m, 30m)
options2optionsvalues =>options2optionsvaluesid, optionsid, optionsvaluesid
products_attributes => attributeid, productid, catid, optionsid, optionsvaluesid

I really need your help.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Vikk is offline Offline
3 posts
since Oct 2009
Oct 20th, 2009
0
Re: Newbie Help with SQL Filter/Search
Hi Vikk and welcome to DaniWeb

Have you made an attempt at this query yet? If you post what you have done we might be able to see what you are trying to accomplish and give some pointers.
Reputation Points: 395
Solved Threads: 192
Veteran Poster
darkagn is offline Offline
1,136 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: how to save link in database
Next Thread in MySQL Forum Timeline: challenging query - Insert On duplicate field? not on duplicate key





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC