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
Access 2007 can't find the "select all" command
MS Access 2007: "Query is Too Complex!"
How to get back original value of a combo box
Password Protect Individual Outlook Contacts?
Vista Windows Update hangs on Preparing to install
List box select color... Access 2007
Record is too large. '80004005' ?
Win7 unable to remotely manage Win2k8 Full Server
Deploying printers with GP in a mixed enviroment
Tab control Select record on subform