This will be Question 2.1 in the finals as from November 2018.
There are several ways to run the SQL code.
- We could use a data module, but I have not seen it being used in a Final paper yet. However the Exam Guidelines 2018 indicates that learners must be able to manipulate data with or without a data module.
- Note that the database will be linked to the files for the exam. I have found that we have better luck keeping the link if we close Delphi completely and then open the program by clicking on the .dpr.
- For the PAT remember to show your learners to delete the path when connecting the database to the ADO connection. This will allow their program to work on any computer regardless of the path.
- There are several options to add the SQL code. Make your learners aware of all the methods as every paper I have seen, makes use of a different method. All the code will be given except the SQL statement in blue below that will be replaced with an empty string.