Question Title: Practical Database Applications
- How can form properties be manipulated to restrict data entry in a database?
- Design a query to find students who are over 15 years old and have a grade above 80.
- How can you customize a report in the Report Wizard to group data by a specific field?
- How would you use a database to manage a small storeβs inventory, including tables, forms, queries, and reports?
- How does the feature of βintegrityβ in databases prevent data issues, and how can it be enforced in a DBMS?
Ruwan Suraweera Changed status to publish 7 days ago
Answers and Descriptions:
- Answer: Set properties like βread-onlyβ or βmaximum lengthβ to limit what users can enter or edit in a form.
Description: A βGradeβ field can be set to accept only numbers between 0-100, preventing invalid entries like βABC.β - Answer: Use criteria βAge > 15β AND βGrade > 80β in the query tool, sorting by name.
Description: This filters the database to show only high-performing older students, useful for identifying scholarship candidates. - Answer: In the wizard, select βGroup Byβ and choose a field (e.g., βClassβ) to organize data into sections.
Description: Grouping by βClassβ in a student report separates results by classroom, making it easier to analyze class performance. - Answer: Create a βProductsβ table (Product ID, Name, Stock) and a βSalesβ table (Sale ID, Product ID, Date). Use forms for stock updates, queries to find low-stock items, and reports for monthly sales.
Description: This system tracks stock levels, identifies reorder needs with queries (e.g., βStock < 10"), and summarizes sales in reports. - Answer: Integrity ensures data accuracy and consistency (e.g., no duplicate records). Itβs enforced in a DBMS with primary keys and relationship rules.
Description: A primary key like βOrder IDβ prevents duplicate orders, and linking tables ensures a sale references a valid product, avoiding errors.
Ruwan Suraweera Changed status to publish May 22, 2025