Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Multiple Value SQL Issue


mark_roach - 10:14 am on Oct 11, 2012 (gmt 0)


You need to join the table with itself. Try something like this (untested):

select a.apple_id from table a, table b where a.apple_id=b.apple_id and a.type_id='Color' and a.type_value='Red' and b.type_id='Size' and b.type_value='Small'


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4505755.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com