Selecting Rows Based on Row Values Being in Array
???
What is wrong with the above statement?
This should be an easy one for you to figure out?
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
Give up?
Well, looks like you are inserting the sql statement inside it self
It should look like this
SELECT *
FROM shoe
WHERE CONCAT( size, color, weight ) IN('7orange50lbs','8purple60lbs')
not
SELECT *
FROM shoe
WHERE CONCAT( size, color, weight )
IN (SELECT * FROM shoe WHERE CONCAT(size,color,weight)
IN('7orange50lbs','8purple60lbs')
Notice the sub-select???
Find where you are inserting the SQL into itself and remove it, and you
might have the answer to your problems.
Jim
|