ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
1 mark · SQL INSERT, UPDATE and DELETE
A database table ‘TeamScore’ stores information about a team’s top scorers. The table is shown below. TeamScore competitor club averageScore R. Oliver Fairmilehead 92.0 G. Byer Currie 92.5 K. Willis Peterborough 91.4 B. McRae Dunfermline 97.0 Describe what would happen to the table when the SQL statement below is run. DELETE FROM TeamScore WHERE averageScore < 92.0;
Any one from: • the record/row for K. Willis (the third row) would be removed from the table • any record/row with an average score less than 92 would be removed from the table.