AIncorrect Answer

The SQL selects all the events which Swedish competitors have entered. The only Swedish competitor is Sven (03) who has one entry in the Competes table: (03, 02).

close

BCorrect Answer

The SQL selects all the events which Swedish competitors have entered. The only Swedish competitor is Sven (03) who has one entry in the Competes table: (03, 02).

close

CIncorrect Answer

The SQL selects all the events which Swedish competitors have entered. The only Swedish competitor is Sven (03) who has one entry in the Competes table: (03, 02).

close

DIncorrect Answer

The SQL selects all the events which Swedish competitors have entered. The only Swedish competitor is Sven (03) who has one entry in the Competes table: (03, 02).

close

EIncorrect Answer

One of the options is correct.

close

A B C D E TELL ME NEXT INDEX
 
 

An athletics meeting involves several competitors who participate in a number of events. The database is intended to record who is to take part in which event and to record the outcome of each event. As results become available the winner attribute will be updated with the cid of the appropriate competitor.

		Competitor(cid, name, nationality)
		Event(eid, description, winner)
		Competes(cid, eid)
Competitor
cidnamenationality
01 Pat British
02 Hilary British
03 Sven Swedish
04 Pierre French
Event
eid description winner
01 running 
02 jumping  
03 throwing 
Competes
cid eid
0101
0201
0302
0402
0403

Identify the result of the following SQL statement:

SELECT eid FROM Competes, Competitor
  WHERE Competes.cid=Competitor.cid 
    AND nationality = 'Swedish'
  1. 01

  2. 02

  3. 03

  4. 04

  5. None of the above