| | |
Newbie Help with SQL Filter/Search
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2009
Posts: 3
Reputation:
Solved Threads: 0
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.
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
- Filtering Search - vb6 & msacess (Visual Basic 4 / 5 / 6)
- sql text search (Visual Basic 4 / 5 / 6)
- pagination and search (PHP)
- Get table list from SQL 2k server (MS SQL)
- Beginner: Insert, Update, Delete & Search records from/to sql database (ASP.NET)
- MS-SQL Standard Memory Cap (MS SQL)
- Unable to delete SQL records (MS SQL)
- Tutorial: Search a Database (ASP)
Other Threads in the MySQL Forum
- Previous Thread: how to save link in database
- Next Thread: challenging query - Insert On duplicate field? not on duplicate key
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring images innerjoins insert ip joebrockmeier join journalism keyword keywords laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization






