Oracle Homework - SQL语句错误

时间:2012-02-29 20:25:56

标签: sql

我收到错误ORA-00936:在以下SQL语句中缺少表达式:

SELECT || first_name || ' ' || last_name || AS "Possible Candidates"
from EMPLOYEES
WHERE LAST_NAME LIKE '%s';

我正在尝试获取名字和姓氏,并将其显示在一个名为“可能的候选人”的列中,其中姓氏的最后一个字母是“s”。

谢谢!

1 个答案:

答案 0 :(得分:3)

SELECT first_name || ' ' || last_name AS "Possible Candidates"
from EMPLOYEES
WHERE LAST_NAME LIKE '%s';