156.Evaluate the following SQL statement:

156.Evaluate the following SQL statement:
SQL> SELECT cust_id, cust_last_name "Last Name"  FROM customers WHERE country_id = 10
UNION
SELECT cust_id CUST_NO, cust_last_name FROM customers WHERE country_id = 30;
Which ORDER BY clauses are valid for the above query? (Choose all that apply.)
A.ORDER BY 2,1
B.ORDER BY CUST_NO
C.ORDER BY 2,cust_id
D.ORDER BY "CUST_NO"
E.ORDER BY "Last Name"
答案:ACE
解析:union 合并的时候是按照第一条sql语句列走的
A:正确,通过占位符号走的,与列别名没有关系
B:错误,第一条sql没有cust_no
C:正确,2是占位符号,cust_id第一条也存在
D:错误,和B一样
E:正确:第一条sql存在Last Name
sts报错,报错信息如下,如何确认问题:06-09 14:59:32 I/ModuleListener: [1/1] EQ5T45G66XCAAQMN com.android.compatibility.common.tradefed.testtype.JarHostTest android.security.sts.Bug_258188673#testPocBug_258188673 FAILURE: java.lang.AssertionError: PoC exited with bad exit code.. Actual: 113 at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failEquals(Assert.java:187) at org.junit.Assert.assertNotEquals(Assert.java:201) at com.android.sts.common.NativePocStatusAsserter$1.checkCmdResult(NativePocStatusAsserter.java:32) at com.android.sts.common.NativePoc.runPocAndAssert(NativePoc.java:264) at com.android.sts.common.NativePoc.run(NativePoc.java:224) at android.security.sts.Bug_258188673.testPocBug_258188673(Bug_258188673.java:38) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:61) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
最新发布
06-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值