单项选择题
要从ORDERS表中取得数据,其中包括三个列CUSTOMER、ORDER_DATE与ORDER_AMT。可以用下列哪个where子句查询ORDERS表,取得客户LESLIE超过2700的订单?()
A.where customer =‘LESLIE’;
B.where customer =‘LESLIE’and order_amt <2700;
C.where customer =‘LESLIE’or order_amt >2700;
D.where customer =‘LESLIE’and order_amt >2700;
点击查看答案&解析
相关考题
-
单项选择题
DTEST表包含两个列,TESTCOL定义为数据类型NUMBER(10),TESTCOL_2定义为数据类型VARCHAR2(10)。在Oracle中发出下列语句:insert into test(testcol,testcol_2)values (null,‘FRANCIS’),然后对表进行下列查询:select nvl(testcol,‘EMPTY’)as testcol from test where testcol_2=‘FRANCIS’。下列选项哪个是得到的结果?()
A.Oracle返回结果0
B.Oracle返回结果EMPTY
C.Oracle返回结果NULL
D.Oracle返回错误结果 -
多项选择题
以下选项中哪个是发出下列查询后Oracle返回的值:select *from emp where hiredate >’23-JAN-82’?()
A.ADAMS
B.MILLER
C.SCOTT
D.SMITH -
单项选择题
以下选项中哪个是发出下列查询后Oracle返回的值:select trunc(months_between(min(hiredate),max(hiredate)))from emp ?()
A.24
B.25
C.-24
D.-25