oracle11g - Oracle Express 11g - hired after another employee's hired date -
i have employees table needs display employee_id, employee_name, hiredate employees have been hired after jack hired. have follow syntax , syntax error shows:
sql command not ended.
select employee_id, employee_name, hiredate employees hiredate > employee_name = 'jack'; i tried () around jack also, , still not working.
you first have find out when jack hired:
select hiredate employees employee_name = 'jack'; you can use subquery where condition. finished query:
select employee_id, employee_name, hiredate employees hiredate > ( select hiredate employees employee_name = 'jack' );
Comments
Post a Comment