18 Databases (3)
Resources |
Revision Questions |
Information Communication Technology ICT
Login to see all questions
Click on a question to view the answer
1.
Question 2
You are creating a data entry form for a school library system. The form requires fields for: Student ID (numeric), Student Name (text), Parent/Guardian Name (text), Email Address (text), and a Checkbox to indicate if the student has overdue books. Explain how you would implement these fields, specifying the appropriate input types, any validation you would include, and how you would use drop-down menus for the 'Parent/Guardian Name' field if necessary.
For the school library form, I would implement the fields as follows:
- Student ID: I would use a text input field with a numeric input type. I would implement validation to ensure the ID is a valid number format.
- Student Name: A standard text input field would be appropriate. I would consider adding validation to prevent excessively long names.
- Parent/Guardian Name: I would use a drop-down menu. This would allow users to select from a predefined list of options (e.g., Mother, Father, Guardian). This ensures consistency and reduces data entry errors. The list would be populated with common titles.
- Email Address: I would use a text input field with an email input type. This will trigger basic email format validation.
- Overdue Books: I would use a checkbox. The label would be clear and concise (e.g., "Student has overdue books?"). This allows for a simple yes/no selection.
2.
A data analyst needs to combine data from two separate files: one containing customer names and another containing their purchase amounts. Both files are in .txt format, with customer names in the first column and purchase amounts in the second, separated by a tab. Describe the steps to import both files into a single spreadsheet table, using the customer name as the primary key to link the data.
- Open the spreadsheet program.
- Import the first .txt file using the 'From Text' option. Specify the tab character ('\t') as the delimiter. This will create a table with 'CustomerName' and 'PurchaseAmount' columns.
- Import the second .txt file using the 'From Text' option. Again, specify the tab character ('\t') as the delimiter. This will create a table with 'CustomerName' and 'PurchaseAmount' columns.
- The two imported tables will likely be placed in separate sheets within the spreadsheet.
- To combine the data, the analyst can use the 'VLOOKUP' function (or equivalent) to match the 'CustomerName' column in the second table with the 'CustomerName' column in the first table.
- The 'VLOOKUP' function will then retrieve the corresponding 'PurchaseAmount' from the second table for each customer.
- The resulting table will contain a combined list of customer names and their purchase amounts.
Key terms: .txt file, delimiter, VLOOKUP function, data linking, spreadsheet program.
Note: The exact steps may vary slightly depending on the specific spreadsheet program being used.
3.
A database report is showing incorrect page numbers in the footer. The page numbers are either missing, displaying the wrong number, or repeating. List four possible reasons why this might be happening and suggest a solution for each.
Here are four possible reasons for incorrect page numbers in a database report footer, along with suggested solutions:
- Incorrect Function Used: The report design might be using the wrong function to generate the page number. For example, using a function that doesn't return the correct page number or using a function that is not compatible with the report layout. Solution: Review the report design and ensure the correct page number function (e.g.,
Page()
, CurrentPage()
) is being used. Consult the database software documentation for the correct function.
Report Design Issue: There might be an issue with the report design itself, such as an overlapping element or a problem with the report layout that is interfering with the page number display. Solution: Examine the report design carefully for any overlapping elements or layout issues. Try simplifying the design to see if the problem is resolved.Incorrect Report Properties: The report properties might be set incorrectly, such as the page size or orientation. Solution: Check the report properties to ensure they are set to the correct values. Verify that the page size and orientation are appropriate for the report content.Database Field Issue: If the page number is being derived from a field in the database, that field might contain incorrect or missing data. Solution: Check the database field that is being used to generate the page number to ensure it contains valid data. If the field is missing data, update the data in the database.