Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1065778
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: Oracle

2015-03-20 01:43:05

12. You need to produce a report where each customer's credit limit has been incremented by $1000. In
the output,  t he customer's  last name should have the heading Name and the   incremented credit  limit
should be labeled New Credit Limit. The column headings should have only the first letter of each word in
uppercase .
Which statement would accomplish this requirement?
A. SELECT cust_last_name Name, cust_credit_limit + 1000     
"New Credit Limit"
FROM customers;
B. SELECT cust_last_name AS Name, cust_credit_limit + 1000      
AS New Credit Limit
FROM customers;
C. SELECT cust_last_name AS "Name", cust_credit_limit + 1000      
AS "New Credit Limit"
FROM customers;
D. SELECT INITCAP(cust_last_name) "Name", cust_credit_limit + 1000      
INITCAP("NEW CREDIT LIMIT")
FROM customers;
Answer: C
列别名需要加""才能保留列别名的大小写。
阅读(953) | 评论(0) | 转发(0) |
0

上一篇:1Z0-051-11题

下一篇:1Z0-051-13题

给主人留下些什么吧!~~