DBMS
DBMS
4. Database Management System: The software that is used to create, update and retrieve data
is known as database management system (DBMS).
5. Examples of DBMS are MS Access, Open Office or LibreOffice Base, Oracle, Ingress, MySQL.
7. Attributes: The details associated with the entity are called attributes.
8. A table is a collection of logically related records. It is organised as a set of columns, and can
have any number of rows.
10. Record/Tuple/Row: A set of various fields is called a record. The data values for all the fields
related to a person or object is called a record.
11. Data values: Data values are the raw data represented in numeric, character or alphanumeric
form.
14.Design View-
In this view records are not visible. Only field names and their datatypes are
visible
We can edit and modify the object or file.
15.Datasheet View-
Default view of the table. It shows all the fields and records as entered by the user
We can only view the sheet and can only make minor changes.
16. Tables:
Grid like structure
Horizontal rows and vertical columns
17. Forms:
Systematic way
Add,update and delete data in database
Organized view of fields
18. Queries:
Queries are used to get specific information from a database.
It is a question or search within a database
19. Reports:
Generated from database’ s table
Provide information in useful way.
Display data in summarized manner.
Answer in Detail:
2. RDBMS-
3. Keys: NCERT(159-161)
Primary key - A primary key is a field that uniquely identifies a row in a table.
Candidate key- All the field values that are eligible to be the primary key are the candidate keys
Alternate key- Out of the candidate keys, one or two are made as primary keys. The others are
the alternate keys
Foreign key -I f a field or a combination of fields of one table can be used to uniquely identify
records of another table, then that particular field is known as the foreign key. This foreign key
helps to build a relation between two tables.
Composite primary key -Combination of fields makes up the Primary key.
4. Relationship between tables:
Save time as there is no need to enter the same data in separate tables.
Types of relationships:
(i)One-to-One
(ii) One-to-many
(iii) Many-to-Many
One-to-one relationship:
In this type of relationship, one specific record of a master table has one and only one
corresponding record in the transaction table. Both the tables must have primary key column.
One-to-Many relationship:
In this type of relationship, one specific record of a master table has more than one
corresponding record in the transaction table. One of the table must have primary key column.
Many-to-Many relationship:
There will be multiple records in the master table that correspond to multiple records in the
transaction table as well. No table has the primary key column.
5.Referential Integrity
According to the principle of referential integrity, no unmatched foreign key values should exist
in the database. That means if a record, say Admission No as 1001 is not present or deleted in
the master table (Student_Details) of Student database, then there should be no record with
Admission no as 1001 in the transaction table (Student_Result) as well.
LibreOffice Base gives us following four options to choose from to maintain referential integrity
in such cases.
• No action – This is the default option. This option states that a user should not be allowed to
update or delete any record in the master table if any related record exists in the transaction
table.
• Update cascade – This option allows the user to delete or update the referenced field but along
with it all the related records in any of the transaction tables will also be deleted or updated.
• Set NULL – This option assigns NULL value to all the related fields if the master record is deleted
or updated.
• Set default – This option assigns any fixed default value to all the related fields if the master
record is deleted or updated.
6. Data types:
The nature of data to be entered for various fields are of different types.
7. Data models:
Data Model is the structure of database and it describes the manner in which data will be
stored and retrieved.
Hierarchical Data Model- the data is organized into a tree like structure. The data is stored
in the form of linked records.
Network Data model- multiple records are linked to same master file.
Relational data model-Based on the principle of setting relationships between two or more
tables of the same database.