For S0001, the entry date at the East Building (B002) is 10/30, which is the newest, so it is the 1st record in descending order — not the 2nd record the question asks for.
×Incorrectイ
For S0002, the entry date at the East Building (B002) is 10/10, which is the oldest, so it is the last (4th) record in descending order — not the 2nd.
×Incorrectウ
For S0003, the entry date at the East Building (B002) is 10/12, making it the 3rd record in descending order — off by one, so it is not the 2nd. Note that S0003 also has a West Building (B003) record dated 10/29, but that is excluded under the East Building extraction condition.
○エ
正解First, look up the building code for the building name “East Building” in the “Building” table, which gives B002. Next, from the “Entry History” table, extract only the records whose building code is B002, giving 4 records: S0001 (10/30), S0002 (10/10), S0003 (10/12), and S0004 (10/20). Sorting them in descending order by date (newest first) gives 10/30→S0001, 10/20→S0004, 10/12→S0003, 10/10→S0002. Therefore the 2nd record is S0004 dated 10/20, and the correct answer is エ.
ここがポイント
Conditional extraction across two tables: first convert the building name “East Building” into the building code B002 (join), then select from the Entry History — grasp this flow.
Sort in descending order (newer dates on top), count from the top, and correctly identify the “2nd record.”