Grade 9 Notes Printed - 10 - 2010 - Databases
Grade 9 Notes Printed - 10 - 2010 - Databases
Database: Database is a collection of logically related files organised in a manner to satisfy the
needs of an organisationOR It is a collection of programs that allow the user to store and
process data in an organised way.
DBMS: Database management system is nothing but the database program itself.
RDBMS: Relational Database Management System - It is a Database program in which
tables/files can be linked or related.
Computerised databases:
1. It is usually necessary to store the data only once.
2. Files can be linked together so that if one file is updated then the remaining files are
automatically updated. This is possible only in relational databases.
3. It is very easy to change the structure of a record. This would be impossible manually.
4. Very few chances of data getting lost.
5. There will be a very great control over mistakes as validation checks can be used which
is not available in a manual system.
Features of a DBMS:
1. The data files can be linked together.
2. Queries can be made to search the data.
3. Users can add, modify the data very easily.
4. The structure of the data files can be modified very easily.
5. Security can be given by using passwords and rights to the users.
6. Features of importing and exporting data with other applications.
Database
Record/s
Queries
Field 1 Field 2 Field 3 Field 4 Field 5
Field: It is a single data item of a person or a thing. Ex: Name, Index, Item Code, Stock etc
Basic properties of fields:Field name; Field type; Field size
Field name: It is the name given to a field to identify the data item.
Field type: It is the type of data it would store in the file (numeric, text, date, logical).
Field size: The memory space allocated to store the data (in bytes). Ex: Index – 5 digits
Types of Data:
Numeric, Alphanumeric, Text, Decimal, Date, Logical etc
1. In the Criteria Section of the Index Field Grid, typing this would ask you to enter the
index number of the student, whose information is needed.
Criteria:[Enter Index ex: 14541]
2. Between [enter first date] and [enter second date] – can be used to search records
based on dates. By giving a range of dates, the query can search for records within
them.
3. [Enter name Ex. Ali] – can be used on name fields to search for records with names.
4. Like[Enter name or part of the name with * Ex: Ahm*] – this can be used to search
records by giving the full name or a part of the name along with an *.
5. Like[Enter date or use *] also works in the same way for date fields.
6. Date() – can be used on date fields. In this case, the query searches for dates in the
records that match the system date.
7. Is Null – can be used to search for records with blank values or null data.
8. Yes –is used on logical fields to search for records that match yes. LikewiseNocan be
used.
9. [Enter Index ex: 14541] and [Enter name] – searches for records that match the Index
number and name input by the user to search.
10. [Enter Index ex: 14541]or[Enter name] – searches for records that match either the
index or name input by the user to search.
ITEM ID
ITEM NAME
MANUFACTURER
FORM MANUFACTURE DATE TEXT BOX
EXPIRY DATE
PRICE
STOCK AMOUNT
BUTTON
REPORTS:
A report is an object in a database that shows information in a printable form. A typical report
has a Report Title, Header & Footer with date and page numbers. Margins and various other
grouping options can be set while designing a report.