Relational Database Design, Implementation And Use Flashcards
Explain the purpose of a data dictionary
The purpose of a data dictionary is to list all the files in the database, including the number of records, field names and types.
How do scripts such as SQL and PHP extract, amend, insert and delete data in a database?
Host languages are used to send the SQL instruction to database management software which processes the instruction.
How are calculations handled by relational databases?
Results of these calculations are obtained and presented using queries and reports. A database should not store calculated data permanently - as this would slow response times to future queries.
Explain the purpose of a report and how a report is generated
Is used to dusk at the results of a query as a formatted document.
Contains database fields to be displayed, along with additional labels, text and graphics used to present the information in a user friendly way.
A query may be needed first to produce this report
Results of calculations are often displayed in the report footer section.
What is the need to refine a design (normalisation) in order to reduce redundancy in a relational database?
So that data can be inserted, modified and deleted in just one table.
Many-to-many relationships expanded to two one-to-many relationships so entities will not be hidden.
Normalisation
Prevents the same fields being present in more than one table
Data can be inserted, deleted and modified in just one table
Achieved by insertion of further entities and relationships into the diagram
Form uses
To enter data into database tables
Forms can be used to create a user interface for a database
Query use
Used to search one or more database tables using entered criteria
Query returns appropriate results when executed
SQL can be used to query a database
How are SQL instructions carried out on a database?
Embedded in other host languages
Host league be sends the SQL instruction to Access
Access processes the instruction
If the instruction is a query then results will be returned and dealt with by the host language
Data in a calculation
Results are obtained and presented using queries and reports
Calculated data is not stored permanently as this would result in a larger database file, slowing response times to future queries
Reports
A formatted document used to display query results
Contains database fields, text, labels and graphics to present the information in a user friendly way