简体   繁体   English

Oracle Homework - SQL语句错误

[英]Oracle Homework - SQL Statement error

I am getting the error ORA-00936: missing expression on the following SQL statement: 我收到错误ORA-00936:在以下SQL语句上缺少表达式:

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

I am trying to get the first name, last name and display them in a single column titled "Possible Candidates" where the last letter of the last name is "s". 我正在尝试获取名字,姓氏,并将它们显示在标题为“可能的候选人”的单个列中,姓氏的最后一个字母为“ s”。

Thanks!! 谢谢!!

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM