0% found this document useful (0 votes)
17 views9 pages

Unit 3 DBMS Notes

The document provides an overview of Database Management Systems (DBMS) and their components, including definitions, types, and examples of databases and DBMS software. It covers key concepts such as primary and foreign keys, data organization methods, and the client-server model, along with advantages and disadvantages of DBMS. Additionally, it discusses creating and manipulating tables, data types, and the use of forms and reports in database management.

Uploaded by

s.sanketh.hegde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views9 pages

Unit 3 DBMS Notes

The document provides an overview of Database Management Systems (DBMS) and their components, including definitions, types, and examples of databases and DBMS software. It covers key concepts such as primary and foreign keys, data organization methods, and the client-server model, along with advantages and disadvantages of DBMS. Additionally, it discusses creating and manipulating tables, data types, and the use of forms and reports in database management.

Uploaded by

s.sanketh.hegde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Appreciate the concept of Database Management System

ASSESSMENT 1
Fill in the blanks:
1. A Database is an organized collection of data.
2. A DBMS is a software package that can be used for creating and managing
databases.
3. A RDBMS is a database management system that is based on the relational
model.
4.Three popular DBMS software are OpenOffice.org BASE, Ms-Access, &
MySQL .
5. A PRIMARY KEY is a unique value that identifies a row in a table.
6. Composite Key is a combination of two or more columns.

1. What is Database?
Answer: An organized collection of data is called a Database. It is a container
of information.

2. Give the example of three RDBMS Database programs?


Answer: Microsoft Access, OpenOffice.org Base, MySQL, Oracle.

3. What is the full form of DBMS & RDBMS?


Answer: DBMS:- Database Management System.
RDBMS:- Relational Database Management System.
4. When was the Database Concept evolved and Why?
Answer: The database concept has evolved since the 1960s.
DBMS concept has evolved to ease increasing difficulties in designing, building,
and maintaining complex information systems (typically with many concurrent
end-users, and with a large amount of diverse data).
5. What do you mean by Database Management System?
Answer: A database management system is a software package with computer
programs that control the creation, maintenance, and use of a database. It
allows organizations to conveniently develop databases for various applications.
A database is an integrated collection of data records, files, and other objects.
A DBMS allows different user application programs to concurrently access the
same database.
6. Give the example of well know DBMSs?
Answer: Well know DBMSs are:- Oracle, IBM DB2, Microsoft SQL Server,
Microsoft Access, PostgreSQL, MySQL, FoxPro, and SQLite.

7. In how many ways you can organize the data?


Answer: Data can be organized in two ways:- (a) Flat File and (b) Relational
File.

1
8. What is Flat-file?
Answer: When data is stored in a single table, called a flat-file. It is suitable for
less amount of data.

9. What is a Relational file?


Answer: When data is stored in multiple tables and the tables are linked using
a common field, called Relational file. It is suitable for medium to a large
amount of data.

10. What are Database Servers?


Answer: Database servers are dedicated computers that hold the actual
databases and run only the DBMS and related software.

11. How to access the database stored on the Database Servers?


Answer: Database available on the database servers are accessed through
command line or graphic user interface tools referred to as Frontends.

12. What do you mean by frontends?


Answer: Frontend is an interface that helps in accessing the data or
information from the database servers. It is like a Forms, which can be
designed in OpenOffice.org base, Microsoft Access, or any other programming
language like Java, PHP, etc.

13. What do you mean by backends?


Answer: Database server is known as Backends. Backends are responsible for
storing data and providing data whenever the application program requires it.

14. What is the client-server model?


Answer: Client-Server model is based on frontends and backends. Front-ends
is a client who makes the request to the server and backends are the server,
who provides the details or data or information to the front-end i.e. clients.

15. What are the disadvantages of a typical fill processing system?


Answer: Typical file processing has the following disadvantages or limitations:-
a) Data redundancy
b) Data inconsistency
c) Insecure data
d) Incorrect data
e) Unsharable data
f) Unstandardized data

16. What are the advantages of DBMS?


Answer: Advantages of DBMS are:-
(a) Reduces Data Redundancy
(b) Sharing of Data
(c) Data Integrity
(d) Data Security

2
(e) Privacy
(f) Standardization of Data,
(g) Data Consistency
(h) Backup and Recovery

17. What do you mean by Data Redundancy?


Answer: Duplication of data is called Data Redundancy.

18. What do you mean by sharing data?


Answer: Multiple users can access the same data stored on the Database
Server. Many remote users can access the data. This is called Sharing of data.

19. What is Data Integrity?


Answer: Data Integrity means that the data is accurate and consistent in the
database. Data Integrity ensures that the data is correct and consistent in all
the databases and for all the users.

20. What is Data Security?


Answer: Data Security means only authorized users can access the database.
If any unauthorized access to the database happens then it is a violation of
integrity constraints.

Short Answer Questions

1. How is data organized in a RDBMS?


Answer: In RDBMS data is organized in the form of row and column i.e.
tabular arrangement, called Table. Table is also know as Relation.

2. State the relationship and difference between a primary and foreign


key?
Answer: Foreign key is a non key attribute which value is derived from the
primary key of other table. Foreign key is used to establish the relationship
between two or more tables with the help of primary key.

3. Difference between Primary Key and Foreign Key


a) Primary key cannot contain NULL value while Foreign Key can contain NULL
value.
b) Primary key always contain unique value, while Foreign Key can contain
duplicate value.

3
SESSION 2: CREATE AND EDIT TABLES USING WIZARD AND SQL
COMMANDS

ASSESSMENT 2
Fill in the blanks:
1. A table is a set of data elements that is organized using a model of
vertical column (column/attribute) and horizontal row (tuple/record).
2. A column is a set of data values of a particular type, one for each row of the
table.
3. A tuple/row represents a single, data item in a table.
4. Data type are used to identify which type of data we are going to store in
the database.
5. There are 3 ways to create a table.
Note : in three ways possible if include the SQL Command – CREATE TABLE
6. Field properties can be set in both the Table Wizard and in Table Design .

Short Answer Questions


1. In how many ways tables can be created in Base?
Answer: Tables can be created in three ways :
(a) Create table in Design View
(b) Use Wizard to Create Table
(c) Use SQL CREATE TABLE command.

2. Why are data types used in DBMS /RDBMS?


Answer: Datatypes are used to identify which type of data (value) we are going
to store in the database.
Fields themselves can be of different types depending on the data they contain
3. List datatypes available in Numeric Datatype?
Answer: Numeric data types are used for describing numeric values for the
field used in the table of a database.
The different types of numeric data types are:
BOOLEAN, TINYINT, SMALLINT, INTEGER, BIGINT, NUMERIC, DECIMAL,
REAL, FLOAT, DOUBLE

4
4. List datatypes available in Alphanumeric Datatype?
Answer: Alphanumeric datatypes allows to store alpha numeric value i.e.
alphabet, numbers, and symbol.
The different types of numeric data types are:
LONGVARCHAR (Memo), CHAR (Text Fix),
VARCHAR (Text), VARCHAR_IGNORECASE (Text)

5. Define the structure of a table.


Answer: A table is a set of data elements (values) that is organized using a
model of vertical columns(which are identified by their name) and horizontal
rows.
A table has a defined number of columns, but can have any number of rows.
Each row is identified by the values appearing in a particular column identified
as a unique key index or the key field.

6. Differentiate between Tuples and Attributes of a table.


Answer: A row also called a Record or Tuple represents a single, data item in a
table. Each row in a table represents a set of related data, and every row in the
table has the same structure.
A column is a set of data values of a particular simple type, one for each row of
the table.
The columns provide the structure according to which the rows are composed.
For example, cFirstName, or cLastName are fields in a row.

7. Name different Binary data types.


Answer: Binary data types are used for storing data in binary formats. Binary
data types in a database can be using for storing photos, music files, etc.
The different types of binary data types are:-
LONGVARBINARY (Image), BINARY (Binary fix), VARBINARY (Binary)

5
Perform operations on table
ASSESSMENT3
Fill in the blanks:
1. The types of languages used for creating and manipulating the data in the
Database are DDL & DML.
2. A Queries is a standard for commands that define the different structures in
a database.
3. A DML is a language that enables users to access and manipulate data in a
database.
4. A SELECT is a part of DML involving information retrieval only.
5. A popular data manipulation language is DML.
6. Tables are the basic building blocks of a database.
7. There are 3 types of Relationships in a table.

Short Answer Questions:


1. What is the file extension for databases created using OpenOffice.Org
Base?
Answer: .odb (dot odb)

2. List any three file formats that can be managed using OpenOffice.Org
Base?
Answer: .odf, .odb, .ods, .dbf, .csv, .xls, .accdb

3. How many types of relationships can be created in Base? Explain each


of the them.
Answer: A relationship refers to an association or connection between two or
more tables. When you relate two tables, you don’t need to enter the same data
in separate tables.
There are three types of relationships which can be created in tables:
1. ONE to ONE
2. ONE to MANY OR MANY to ONE
3. MANY to MANY
One to One Relationship : In this relationship, both the tables must have
primary key columns.
One to Many Relationship : In this relationship, one of the table must have
primary key column. It signifies that one column of primary key table is
associated with all the columns of associated table.
Many to Many Relationship : In this relationship, no table has the primary
key column. It signifies that all the columns of primary key table are associated
with all the columns of associated table.

6
4. What do you mean by Sorting? In how many ways it can be done?
Answer: Sorting means to arrange the data in either ascending order of
descending order. Select the column(s) then click on sort buttons. The data will
be displayed accordingly.
Sorting can be done in two ways:-
(a) Sort Ascending and (ii) Sort Descending

5. Explain Referential Integrity with the help of an example.


Answer: Referential integrity is used to maintain accuracy and consistency of
data in a relationship. In Base, data can be linked between two or more tables
with the help of primary key and foreign key constraints.
Referential integrity helps to avoid: 
(a) Adding records to a related table if there is no associated record available in
the primary key table.
(b) Changing values in a primary if any dependent records are present in
associated table(s).
(c) Deleting records from a primary key table if there are any matching related
records available in associated table(s).

SESSION 4: RETRIEVE DATA USING QUERY

ASSESSMENT 4
Fill in the blanks.
1. A FORM helps the user to systematically store information in the database.
2. A FORM enables users to view, enter, and change data directly in database
objects such as tables.
3. SELECT statement retrieves zero or more rows from one or more database
tables or database views.
4. By default, data is arranged in ascending order using ORDER BY clause.
5. UPDATE statement is used for modifying records in a database.
6. DELETE statement is used to remove one or more records in a Database.

Short Answer Questions:


1. Name DML commands.
Answer: DML stands for Data Manipulation Language.
There are four DML commands are :
SELECT, INSERT INTO, UPDATE, DELETE

2. What is the purpose of using queries?


Answer: Queries are commands that are used to define the data structure and
also to manipulate the data in the database. Queries are use to retrieve the
rows from database tables or database views.

7
3. Which clause of Select statement helps to display specific data?
Answer: WHERE clause is used to display specific data.

4. Differentiate between Where and Order by clause of SQL statements.


Answer: Where clause is use to select specific rows in query while Order
By clause is use to arrange the result in specific order either in ascending or
descending.

5. State the purpose of Update Command with the help of an example.

Answer: UPDATE command of SQL is used for modifying records in a


database.

The general syntax of the update statement is as follows:


UPDATE tablename SET column_name = value [, column_name = value …]
[WHERE condition];
For example:
UPDATE employee SET salary = 25000 WHERE empid = 1111;

Forms and reports


ASSESSMENT 5
Fill in the blanks:
1. To create a form you need to select FORMS option available under Database
section.
2. A FORMS is helps to collect specific information from the pool of data in the
database.
3. REPORTS is used to display the display the summary of data.
4. FORMS are the interfaces with which the user interacts.
5. Data from multiple tables can be stored in Query.
Short Answer Questions:
1. Why there is a need to create Forms?
Answer: Forms allows to collect the information in a specific layout as well as
through forms you can view, enter and change the data directly in database
objects..

2. What is the purpose of creating Reports?


Answer: The main purpose of Forms to collect the data in systematic way. It
provides an interface which allow to enter data, view data, modify data as well
as delete data directly in database objects like table.

8
3. What are the prerequisites to create a Form and Reports?
Answer: To create a forms in OpenOffice.org Base, first of all you need to create
a Database. After that you need to create table according to the requirements
i.e. on the basis of data you want to collect.
To create reports, you must have at least one table with records under your
database. Because Report helps to display the data in a summarized manner.

4. Differentiate between Forms and Reports.


Answer: Forms is an interface, which provide a facility to enter records, view
records, modify records, and delete records.
Reports help to display the data/records in specific manner or format i.e.
summary of data.

5. Can a form displays data from queries?


Answer: Yes

6. In how many ways Forms and Reports can be created in a database?


Answer: Forms can be created in two ways : -
(i) Create Form
(ii) Use Wizard to create form.
Reports can be created in one way :- (a) Use Wizard to create report

You might also like