楼主: shyu1

[精华] [Discussion}Questions for 1z0-007

[复制链接]
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
11#
 楼主| 发表于 2002-8-8 23:07 | 只看该作者
9. Which of the following SQL statements can calculate and return the absolute value of -33?

      A. SELECT ABS(-33) "Absolute" FROM DUAL;
      B. SELECT ABS(-33), Absolute FROM DUAL;
      C. SELECT ABS("-33" Absolute FROM DUAL;

ANS: A

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
12#
 楼主| 发表于 2002-8-8 23:10 | 只看该作者
10. What does the following SQL script do?

      SELECT AVG(MAX(salary)) FROM employees GROUP BY department_id;

      A. it has a syntax error, the AVG clause is not valid
      B. it calculates the average of the maximum salaries of all the departments
      C. it has a syntax error, the MAX clause is not valid
      D. it has no error, but the GROUP BY clause is not effective
      E. it has no error, but the AVG clause is not effective
      F. it has no error, but the MAX clause is not effective

ANS:B

使用道具 举报

回复
论坛徽章:
0
13#
发表于 2002-8-9 05:47 | 只看该作者

quesion8: last_name LIKE Ma%

should Ma% be quoted as 'Ma%'?

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
14#
 楼主| 发表于 2002-8-9 07:42 | 只看该作者
11. Which three SELECT statements display 2000 in the format "$2,000.00"? (Choose three.)
      A. SELECT TO_CHAR(2000, '$#,###.##')
      FROM dual;

      B. SELECT TO_CHAR(2000, '$0,000.00')
      FROM dual;

      C. SELECT TO_CHAR(2000, '$9,999.00')
      FROM dual;

      D. SELECT TO_CHAR(2000, '$9,999.99')
      FROM dual;

      E. SELECT TO_CHAR(2000, '$2,000.00')
      FROM dual;

      F. SELECT TO_CHAR(2000, '$N,NNN.NN')
      FROM dual;

ANS: BCD

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
15#
 楼主| 发表于 2002-8-9 07:43 | 只看该作者
12. What condition can you use for testing that involves pattern matching?
      A. LIKE

ANS: A

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
16#
 楼主| 发表于 2002-8-9 07:45 | 只看该作者
13. What condition can you use to test for the existence of rows in a subquery:
      A. EXISTS

ANS: A

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
17#
 楼主| 发表于 2002-8-9 07:52 | 只看该作者
14. Which of the following queries can you use to search for employees with the pattern A_B in their names?

      A. SELECT last_name
      FROM employees
      WHERE last_name LIKE '%A_B%' ESCAPE ;

      B. SELECT last_name
      FROM employees
      WHERE last_name LIKE 'A_B%' ESCAPE '%';

      C. SELECT last_name
      FROM employees
      WHERE last_name LIKE '%A\_B%' ESCAPE '\';

      D. SELECT last_name
      FROM employees
      WHERE last_name LIKE '%A\_B%' ESCAPE '\\';

ANS: C

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
18#
 楼主| 发表于 2002-8-9 08:32 | 只看该作者
15. the DBA create a public sysnonym named HR,and u have created a table named HR.so,what's the result when u execute the sql statement followed:

select * from hr;

ANS: your table.

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
19#
 楼主| 发表于 2002-8-9 23:42 | 只看该作者
16 which three is datatime types that can be used in column definitions when create table?
A. timestamp
B. interval month to day
C. interval day to second
D. interval year to month
E timestamp with database

Ans: A,C,D

使用道具 举报

回复
论坛徽章:
10
授权会员
日期:2005-10-30 17:05:33ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32奥运会纪念徽章:跳水
日期:2012-07-13 08:09:36ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412011新春纪念徽章
日期:2011-02-18 11:43:352010新春纪念徽章
日期:2010-03-01 11:20:05奥运会纪念徽章:现代五项
日期:2008-09-13 00:09:46奥运会纪念徽章:垒球
日期:2008-07-18 10:50:54会员2006贡献徽章
日期:2006-04-17 13:46:342013年新春福章
日期:2013-02-25 14:51:24
20#
发表于 2002-8-9 23:58 | 只看该作者
还有吗?

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表