ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0-051-84

OCP 1Z0-051-84

原创 Oracle 作者:LuiseDalian 时间:2014-05-17 07:24:41 0 删除 编辑
(84)View the Exhibit and examine the structure of the EMPLOYEES table.

Examine the data in the ENAME and HIREDATE columns of the EMPLOYEES table:

ENAME   HIREDATE

SMITH   17-DEC-80

ALLEN   20-FEB-81

WARD    22-FEB-81

You want to generate a list of user IDs as follows:

USERID

Smi17DEC80

All20FEB81

War22FEB81

You issue the following query:

SELECT CONCAT(SUBSTR(INITCAP(ename),1,3),

                REPLACE(hiredate,'-')) "USERID"

FROM employees;

What is the outcome?



答案:(A)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1163103/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0-051-82
下一篇: OCP 1Z0-051-85
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6042362