你还在为考试焦头烂额?找我们就对了!

我们知道现在是考试月,你正在为了考试复习到焦头烂额。为了让更多留学生在备考与学习季更轻松,我们决定将Gold会员限时免费开放至2025年12月31日!原价£29.99每月,如今登录即享!无门槛领取。

助你高效冲刺备考!

题目
题目

INFO20003_2025_SM2 Exam: Database Systems (INFO20003_2025_SM2)- Requires Respondus LockDown Browser

单项选择题

Transactions: Case Study Scenario A   Time Renata Lillian 0 BEGIN;   1 INSERT INTO Students VALUES (‘colton@email.com’, ‘Colton', 85);   2 INSERT INTO Students VALUES (‘david@email.com’, ‘David’, 64); >> FAILED!   3   SELECT * FROM Students;   Which result (see Transactions: Case Study Intro) would you expect to see if you were Lillian, when she runs the query?

选项
A.Result #1: 0 rows returned
B.Result #2: 2 rows returned
C.Result #3: 3 rows returned
D.Result #4: 4 rows returned
查看解析

查看解析

标准答案
Please login to view
思路分析
Question restatement: In the Transactions: Case Study Scenario A, Renata and Lillian are performing a sequence of SQL statements within a transaction that begins with BEGIN; and ends with SELECT * FROM Students;. The steps shown are: - 0: BEGIN; - 1: INSERT INTO Students VALUES ('colton@email.com', 'Colton', 85); - 2: INSERT INTO Students VALUES ('david@email.com', 'David', 64); >> FAILED! - 3: SELECT * FROM Students; We are asked to decide which result would be observed by Lillian when she runs the query. Option 1: 'Result #1: 0 rows returned' - Why this is not correct: Because the first INSERT executed and inserted Colton into the table before the second INSERT failed. If the ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

为了让更多留学生在备考与学习季更轻松,我们决定将Gold 会员限时免费开放至2025年12月31日!