Microsoft
Software
Hardware
Network
Question : What is wrong with this query
Can someone show what is wrong with this query?
select R_NUMBER, Q_ID, `TEXT` from ANSWER
where R_NUMBER IN (SELECT * FROM REQUEST WHERE R_DATE_COMPLETED LIKE '2010%')
I get this error: 1241 - Operand should contain 1 column(s)
Answer : What is wrong with this query
Remove , R_STATUS as well... You cannot compare R_Number with two values.
It should be::
select R_NUMBER, Q_ID, `TEXT` from ANSWER
where R_NUMBER IN (SELECT R_NUMBER FROM REQUEST WHERE R_DATE_COMPLETED LIKE '2010%');
Random Solutions
ALTER TABLE / ALTER COLUMN QUESTION???
Intercept the "You must enter a value in the "FormName.FieldName' field." error message...
Determine the closest word in the list.
Exchage Error SPAM question.
One hyperlink that passes parameters to two inline frames
Word 2007 - Hyperlinks to Outlook Blocked
architecture question
Why Can't I find "TypeOf" in Microsoft's Access Help files.
Sharepoint 2003 with Recycle Bin
Macro to run Goal Seek multiple times and transpose output - Excel 2007