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
Overlapping labels - Highlight
show autonumber
How do you print a MS Outlook Calendar in color? Need to export to PDF while maintaning color also.
Have values without Controls
Fatal Error C00021A
Outlook Express could not be started because MSOE.DLL could not be loaded
SSIS: Using a parameter for connection string
Cant Install SQL Server 2008 on Windows Server 2008 R2
Getting GC error trying to run rendom /upload
event id 1639 warning message on blackberry server