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
MS Access Audit using Screen.ActiveControl.OldVa<wbr />lue
Remove first 5 characters from SQL
Reason for MyProj.csproj.FileListAbso<wbr />lute.txt
asp.net Why does'nt these required fields work. Only the Phone field works?
How to change data arrangement from Raw arrangement into column arrangement
Forefront TMG - Outbound IPSec Connection gets blocked
How do I set the marquee text of the Logon Prompt screen saver for Default User?
SQL error with web site
Printing Specific Reports from Multiple Forms
Exchange 2007 - Test-SystemHealth (Upgrading servicepack 2)