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
When a virtual workstation was last logged on?
Excel table linked into Powerpoint slide
Not showing Alert() before Response.redirect
DAO recordset edit problem
VBA code to select the folder one level above this workbook's folder
Mutiple active forms in Access
Loading any ActiveX.ocx in VB.NET Form
Microsoft Project Server will not respond to requests for fully qualified domain names
Auto save and zip macro that overwrites zipped files when condition is met
Fonts not appearing in MSPaint