0% found this document useful (0 votes)
7 views

SQL Task Instructions

Uploaded by

loduke9
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

SQL Task Instructions

Uploaded by

loduke9
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

WORKSHEET

Information Technology 10
SQL task

Download the folder with the files provided for this task. You should have two files besides
these instructions:
• a database called PrizeGiving
• the answer sheet called SQLAnswer Surname

Rename the answer sheet by replacing the word Surname with your surname. You will copy
your SQL queries from Access into the spaces provided in the answer sheet, then save it as a
PDF, and then upload it to Moodle.

The database contains details of awards and prizes at a school’s annual prize giving
ceremony. The details are in a table called Learners. Open the database in MS Access and
look at the structure of the table as well as the data. Then answer the following questions,
using SQL View. Do not use Design View.

1. Write a query to list all the details of all the learners in the table. (2)

2. Write a query to list all the details for students in Grade 10 who will be receiving
an Award and/or a Prize. Display the list by Surname and then Name. (4)

3. Write a query to print the Name, Surname, Grade and Percentage of all students
who are not in Grade 11. List the names in descending order of Percentage. (3)

4. Write a query to list the Name, Surname, Grade, Percentage and Award for all
learners who are receiving any sort of badge as an award. Only include learners
who are in Grade 11 and Grade 12. A sample of the output is shown below. (6)

© Hatfield Online School


5. Write a query to list all students whose Surname is in the range from A to G,
inclusive. Display the Name, Surname and Grade, in alphabetical order
of Surname. (4)

6. Add your own details to the table for the Top Student Prize in Information
Technology. Capture only your Name, Surname, Grade, Subject, Prize,
PrizeValue and PrizeSponsor. (6)

7. Update the table to give all students one extra Percentage point. Do this
only where the Percentage already has a value. (5)

© Hatfield Online School

You might also like