Hehehe
Hehehe
Hehehe
(b) Data redundancy: Data redundancy in a database management system (DBMS) is when the same data
is stored in more than one location within a database or across multiple data systems.
(c) Report: A report is a graphical object that presents data in a formatted layout. This is useful for
displaying data in an organised manner and for printing.
(b) Form and Query: Forms provides an interface to users to view, add, modify in both tables and queries.
Reports are presented forms used to present formatted summaries or lists of the data from one or more
tables or queries.
(c) Network and hierarchical data model: A network data model is an organization of data in a more
flexible series of relationships. It's like a hierarchical data model, but child nodes can have multiple parent
nodes instead of just one. The terminology used is different too. Instead of parents or root nodes, network
data models have owners.
1|Page
Better Data Security:
DBMS can help protect data by restricting access to authorized personnel, and by providing a framework
for enforcing privacy and security policies.
Improved Decision-Making:
DBMS can help provide a framework for making data quality initiatives easier, and can help companies
make real-time decisions.
4. Consider the table given below and answer the questions that follow
Table: Library
Book_Id Book_Name Author_Name Price Publisher
F001 Pride and Prejudice Jane Austen 550 ABC
S004 Amazing Astronomy E. Shane 1050 ABC
C005 IT and Mankind MHA Diwaan 2500 HYM
Answer:
(a) Book_Id, Book_Name, Author_Name, Price, Publisher.
(b) Book_Id field should be made the Primary Key.
(c) Yes we can make Publisher as Foreign Key.
(d) The main difference between a primary key and a foreign key is that a primary key uniquely identifies
each row in a table, while a foreign key links data in one table to another:
Primary Key:
A column or columns that uniquely identify each row in a table. Primary keys ensure that each record is
identifiable and that no two rows contain the same value. They are used to extract or archive data from a
table. Examples of primary keys include a driver's license number, telephone number with area code, or
vehicle identification number (VIN).
Foreign Key:
A column or columns that references a primary key in another table. Foreign keys establish and enforce
relationships between tables, and ensure data integrity. For example, in a library database, a Books table
might have a BookID primary key, and a Loans table might have a BookID foreign key. The foreign key
references the primary key in the Books table, ensuring that only valid BookIDs are stored in the Loans
table. Here are some other differences between primary keys and foreign keys:
1. Number of keys: There is only one primary key in a table, but there can be multiple foreign keys.
2. Null values: Primary keys cannot accept null values, but foreign keys can.
3. Deleting values: Primary key values cannot be removed from the parent table, but foreign key values
can.
4. Temporary tables: Primary keys can be defined in a temporary table, but foreign keys cannot.
2|Page
Starting with LibreOffice Base
1. Differentiate between:
(a) Memo and Varchar data type
(b) Number and Decimal data type
(c) Design View and Datasheet view of a table
Answer:
(a) Memo and Varchar data type
Memo Varchar
Can store text or binary data of any format and Stores character strings of varying length that
variable length. The memo data type is also can contain single-byte and multi-byte
known as CLOB (character large object) or characters. The length of a varchar column can
BLOB. In Microsoft Access desktop databases, be specified as a value from 0 to a limit, which
the memo data type is now called "Long Text". varies by database.
Allows you to create or change the table, Allows you to visualize your data, fields, and
form, or other database object, and configure records in the form of a spreadsheet. You can
the fields. You can also see the header, detail, edit the data, but you can't change the format of
and footer sections for the form. the database other than minor changes.
3|Page
7. Help
Standard Toolbar
Status Bar
3. Label the components – Title Bar, Database Pane, Tasks Pane, Status Bar of the LibreOffice Base User
Interface.
Step 2: From the tool bar click Sort Ascending icon if the table has to be sorted in ascending order of
selected field. Alternatively select Sort Descending icon if the table has to be sorted in descending order of
selected field.
4|Page
Working with Multiple Tables
1. Give any two advantages of relating a table in a database.
Answer:
Relating tables in a database can help you understand the relationships between data and create
meaningful information. Here are some advantages of relating tables in a database:
Flexibility:
You can easily add, update, or delete tables and relationships without impacting the database structure or
existing applications.
Referential integrity is a logical dependency between a foreign key and a primary key. A foreign key
is a primary key from one table that appears in another table. Referential integrity ensures that
each foreign key in a table points to a unique primary key value in another table.
Referential integrity is important because it prevents incorrect records from being added, deleted,
or modified. It also helps to ensure that data is not lost and that data quality is maintained.
Referential integrity is enforced through constraints, such as foreign key constraints. When an SQL
operation attempts to change data in a way that would violate referential integrity, the database
manager enforces a set of rules associated with each referential constraint.
5|Page
4. Differentiate between one to one relationship and one to many relationship. Give suitable examples to
explain your answer.
Answer:
The main difference between a one-to-one relationship and a one-to-many relationship is that in a one-to-
one relationship, each record in one table is linked to a single record in another table, while in a one-to-
many relationship, one record in one table is linked to multiple records in another table:
One-to-one relationship: In a one-to-one relationship, each record in one table has at most one
related record in another table. For example, a one-to-one relationship can exist between
employees and the cars they drive.
One-to-many relationship: In a one-to-many relationship, one record in one table is linked to
multiple records in another table. For example, a one-to-many relationship can exist between a
product category and the individual products within that category.
6|Page
Queries in Base
3. What all information is seen in the overview (last step) of the Query wizard?
Answer:
The last step of the Query wizard displays the entire overview of the query.
• Name of the Query – By default, the name of the query is Query_Events by default. If desired, type the
new name in the text box.
• The action to be performed after the wizard finishes –
By default Display Query option will be selected. Click and select the Modify Query radio button if the
query has to be edited in the Design view.
• Complete detail of the query –
This section contains a summary about the query that has been created.
7|Page
4. What is the use of Alias row in the Design grid of the Query Design window?
Answer:
The column header name will be displayed when we run the query. By default the field names will be
displayed as column headers. Many times field names are not user friendly, so an alias name which is
more readable, is chosen to be displayed in the query output.
5. Name any four mathematical functions that can be applied to numerical data in a query.
Answer:
1. count
2. sum
3. minimum
4. maximum
5. average
8|Page
Forms and Reports
3. Which tool on the Forms Record toolbar is used to insert text on the form?
Answer:
Tool for inserting text on the form The "Text Box" tool on the Forms Record toolbar is used to insert text
on the form.
9|Page
6. Write the function of Forms Controls toolbar and Records toolbar.
Answer:
Forms Controls toolbar:
Provides tools for adding and configuring controls (like text boxes, buttons, etc.) on a form.
Records toolbar:
Offers tools for navigating through records, adding new records, and saving changes.
10 | P a g e