Oracle select query with inner select query error
问题 I am getting a SQL error and trying to resolve, any pointers would be helpful, // this gets executed SELECT empid FROM employees WHERE deptid IN (10,20,30,40 ); // this gets executed SELECT deptid FROM department WHERE description LIKE '%application%' ORDER BY createddate DESC but the below query throws error: SELECT empid FROM employees WHERE deptid IN (SELECT deptid FROM department WHERE description LIKE '%application%' ORDER BY createddate DESC); error: ORA-00907: missing right parenthesis