Newbie Help with SQL Filter/Search

Reply

Join Date: Oct 2009
Posts: 3
Reputation: Vikk is an unknown quantity at this point 
Solved Threads: 0
Vikk Vikk is offline Offline
Newbie Poster

Newbie Help with SQL Filter/Search

 
0
  #1
Oct 19th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 793
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 109
darkagn's Avatar
darkagn darkagn is offline Offline
Master Poster
 
0
  #2
Oct 20th, 2009
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.
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC