Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
11 views

Assignment 6

The document is an assignment on Database Management Systems covering various topics such as concepts of databases, creating and using tables, performing operations on tables, retrieving data using queries, and working with forms and reports. It includes multiple-choice questions, fill-in-the-blank exercises, and descriptive questions to assess understanding of database concepts and functionalities. Key concepts discussed include DBMS vs RDBMS, primary and composite keys, data types, SQL commands, and the role of forms and reports in data management.

Uploaded by

jangratanisha26
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Assignment 6

The document is an assignment on Database Management Systems covering various topics such as concepts of databases, creating and using tables, performing operations on tables, retrieving data using queries, and working with forms and reports. It includes multiple-choice questions, fill-in-the-blank exercises, and descriptive questions to assess understanding of database concepts and functionalities. Key concepts discussed include DBMS vs RDBMS, primary and composite keys, data types, SQL commands, and the role of forms and reports in data management.

Uploaded by

jangratanisha26
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Database Management System

(Unit – 3) (Part – B)

ASSIGNMENT – 6th
Subject

Information Technology
Submission Date:

Index
Database Management System
(Unit – 3) (Part – B)

Chapter 10 – Concepts of Database Management System


Page No. 2-5

Chapter 11 – Creating and Using Tables


Page No. 6-8

Chapter 12 – Performing Operations on Tables


Page No. 9-11

Chapter 13 – Retrieving Data Using Queries


Page No. 12-14

Chapter 14 – Working with Forms and Reports


Page No. 15-17

2
CHAPTER: 10

CONCEPTS OF DATABASE MANAGEMENT


SYSTEM

ASSESSMENT TIME
A. Select the correct option (ans. Bold)

1. It is a collection of data that is stored in a systematic manner.

a) Database
b) Data
c) Information

2. It is a raw and unprocessed form of facts and figures.

a) Information
b) Data
c) Database

3. A record in a table refers to… .

a) A value in a field
b) Single field
c) A set of related fields

4. What does DBMS stand for?

a) Database Monitor System


b) Database Management System
c) Database Manger Software

5. Which of the following is not true about the primary key?

a) A primary key uniquely identifies a record


b) A table can have only one primary key
c) A primary key field can be NULL

3
B. Fill ups (ans. Bold)

1. Data redundancy occurs when the same piece of data is duplicated unnecessarily in
multiple places in database.
2. A relational model enables the users to store the data in several tables.
3. The primary key field cannot be NULL.
4. Composite key refers to a combination of two or more attributes (fields) that
uniquely identifies the records in a table.
5. Data concurrency means many users can access and modify the shared data at
the same time, without violating the data consistency.

C. Answer the following questions.

1. What is a database?

Ans. It is a collection of programs that enables users to create, maintain database and
control all the access to the database. It is a computer based record keeping system.
DBMS is a software package that manages database, e.g. MySQL, INGRES, MS-
ACCESS etc.

2. Distinguish between DBMS and RDBMS.

Ans. DBMS:

I. Database Management System (DBMS) is the software that is used to define,


create and maintain a database and provides controlled access to the data.
II. DBMS stores data as a file.

RDBMS:
I. Relational Database Management System (RDBMS) is an advanced version of DBMS.
II. RDBMS stores data in tabular form.
3. What are tuples and attributes?

Ans. Table Columns are referred to as an attribute is a piece of information about an


object. It describes a specific property of a record.

Table Rows are referred to as records.A tuple is a single record in a table. A set of
attribute values in which no two distinct elements have the same name.

4. Describe the primary key.

4
Ans. Primary key:-

• A primary key is a special relational database table column (or combination of


columns) designed to uniquely identify each table record.
• A primary key is used as a unique identifier to quickly parse the data within the
table.
• A table cannot have more than one primary key.
• A primary key cannot be NULL.
5. What is a composite key? Give an example.

Ans. A primary key a having two or more attributes is called combination of two or more
columns. composite key. It is An example can be - Here our composite key is Customer ID
and Product ID (Customer ID, Product_ID).

5
CHAPTER: 11

CREATING AND USING TABLES

ASSESSMENT TIME
A. Select the correct option (ans. Bold)

1. Which of the following is not a database object?

a) Tables
b) Handouts
c) Reports

2. Which of these is used to retrieve the information from database?

a) Table
b) Report
c) Query

3. You cannot enter data in a table in the … view?

a) Datasheet
b) Database
c) Design

4. Which data type will you use to store the date of admission?

a) Number
b) Date/Time
c) Text

5. The … field type holds numbers with decimals.

a) OLE
b) Number
c) Memo

6
B. Fill ups (ans. Bold)

1. MS Access provides the facility to create relationship between tables.


2. A field’s data type determines what type of data can be entered into it.
3. A form accepts data from the user and inserts it to the corresponding table or
query.
4. The memo data type stores text and numbers.
5. Primary key is a constraint in the table to check that every record in the table is
unique.

C. Answer the following Questions.

1. Describe different database objects.

Ans. Tables: Tables are the building blocks of a database. They store data items in the
form of rows and columns. As you know, all the rows are referred to as records or tuples,
and all the columns are known as fields or attributes. For example, in the Employee table,
the data of related fields of the employees, such as Emp_Code, Name, Department,
Salary, etc., is called a record and specific property of that employee, such as Salary, is
known as field.
Queries: As the name suggests, queries are used to ask questions from the tables of a
database, which stores a vast amount of data. Queries help to retrieve the filtered data
from the database tables, based upon some conditions. They are also used to insert,
delete, and update the data in the database depending upon the criteria specified by the
user.
Forms: Forms are the user-friendly interfaces that facilitate the process of inserting,
editing, deleting, and updating the data in tables and queries. It accepts the data from the
user and stores it in the corresponding table or query. Using a form, you can add and
update one record at a time.
Reports: Reports are used to display the selected data in a printable format. Reports
collect the summarised data from one or more tables/queries and organise it in a printable
form.

2. What are data types?

Ans. Data type determines what type of data you can enter into a field. For example, a
field whose data type is ‘Number” can only store numeric data and does not allow you to
enter text data into it.

7
3. Describe the use of the text data type.

Ans. Text is stored in form of character or string, or in combination of text and number.
This type of data is not used to perform calculation.

4. Distinguish between Datasheet View and Design View.

Ans. In Table Data view you can enter and navigate the records. Where in Table
Design you can create a Table by defining the field name and field types.

8
CHAPTER: 12

PERFORMING OPERATIONS ON TABLE

ASSESSMENT TIME
A. Select the correct option (ans. Bold)

1. Which of these is used to create a table in MS Access?

a) Datasheet View
b) Table Design View
c) Both a and b

2. Which of the following property defines a criteria for a field?

a) Validation Rule
b) Validation Text
c) Caption

3. In the … relationship, a record in a table can have only one matching record in another
table, and vice versa.

a) One-to-One
a) One-to-Many
b) Many-to-Many

4. … are links that associate a field in one table with a field in another table.

a) Relationships
b) Fields
c) Tables

5. Which of the following is true about the Referential Intergrity?

a) All references must be valid.


b) It ensures the accuracy and Consistency.
c) Both a and b

9
B. Fill ups (ans. Bold)

1. Referential Integrity (RI) rule states that a foreign key must have a matching Primary
key.
2. In One-to-One relationship, a record in a table can have only one matching record in
another table, and vice versa.
3. You cannot implement the Many-to-Many are the special characters that are used as
substitutes for one or more characters in a string.
4. A Field property defines the characteristics of the field.

C. Answer the following questions.

1. What is the use of tables in a database?

Ans. Tables are the easiest way to store, organize, and present a large amount of
information. They are the building blocks of a database. Tables play an important role in
storing data. All the data is stored in the database in tabular form. A well-designed table
helps the users to retrieve the data from a database easily.

2. How can you sort records of a table in the descending order?

Ans. We can do it by the following:-

• Open a table and select the field according to which you want to sort the data.
• Click on the Sort in Ascending Order or Sort in Descending Order button on the Table
Data toolbar.

3. Describe Referential Integrity.

Ans. Referential Integrity (RI) is a rule in RDBMS. It states that a foreign key must
have a matching primary key, i.e., all its references must be valid and the users cannot
accidentally delete or amend the data. It ensures the accuracy and consistency of the
data within a relationship, and prevents the users to enter the inconsistent data.

4. List the different types of relationships.

Ans. There are three types of relationships:


• One-to-One
• One-to-Many
• Many-to-Many

10
5. Give a real life example of many-to-many relationships.

Ans. Example that represents many-to-many relationship is the relationship of students


and subjects, where a student can opt several subjects, whereas a subject can be studied
by several students at a time.

11
CHAPTER: 13

RETRIEVING DATA USING QUERIES

ASSESSMENT TIME
A. Select the correct option. (ans. Bold)

1. Which of the following row allows you to enter the condition for a query?

a) Field
b) Criteria
c) Function

2. Which of the following option is used with wildcards?

a) Like
b) Where
c) None of these

3. Which wildcard character is used to retrieve zero or more characters from a field?

a) ?
b) *
c) []

4. What does SQL stand for?

a) Structured Query Language


a) Standard Query Language
b) Structured Question Language

B. Fill in the blanks (ans. Bold)

1. The Query Wizard guides you to create a query from a selected table.
2. In the Query Design View, the or property allows the user to specify an alternative
name for any field.
3. Wildcards are the special characters that are used as substitutes for one or more
characters in a string.

12
4. A user can create and manipulate database anytime by using the SQL commands.

C. Answer the following questions.

1. What is a Query?

Ans. a query is a database object that enables you to retrieve records from one or more
tables of the database or different databases that meet a specific condition or criteria.

2. What is the difference between the Query Wizard and Query Design View?

Ans. The Query Wizard guides you to create a query based on selected table. It is the
easiest method for beginners.
The Query Design View gives you more control over a query. It allows you to create a query
from the scratch. The Query Design window is divided into two sections – Objects
Relationship Pane and Design Grid.

3. What is SQL?

Ans. SQL is a language that allows you to make queries to define the data structure and
manipulate the data in the database. Data manipulation is the process of editing or
modifying the data to keep it updated.

4. Distinguish between the DDL and DML commands.

Ans. Data Definition Language (DDL) commands

DDL
Usage
Commands

CREATE Creates a new database or table

ALTER Modifies the structure of a database or table

13
DDL
Usage
Commands

DROP Deletes an existing database or table

TRUNCATE Removes all the records including allocated table spaces

RENAME Renames an existing database or table

These commands are used to define and modify the structure of a database. The
commands that fall under this category are as listed below:

Data Manipulation Language (DML) commands

These commands allow the users to manipulate data in the database. They help in retrieval,
insertion, deletion, and modification of the information present in the database.

Following are some of the commonly used DML commands:

DML Commands Usage

SELECT Retrieves data from the table

INSERT Inserts data into a table

UPDATE Updates the existing data with the new data within a table

DELETE Deletes the records from the table

14
CHAPTER: 14
WORKING WITH FORMS AND
REPORTS
ASSESSMENT TIME
A. Select the correct option. (ans. Bold)

1. A … is a convenient and interactive way of entering data.

a) Form
b) Report
c) Query

2. The … button is a part of the record navigation toolbar.

a) New Record
b) Save
c) New Table

3. A … is an effective way to organize and summarize data from a database for viewing and
printing.

a) Table
b) Form
c) Report

4. The … is a section in a report that contains the information, which appears on each page
of the report.

a) Report Header
b) Header
c) Report

5. The … section is printed at the end of every page of a report.

a) Page footer
b) Report header
c) Page header

15
B. Write T for True and F for False.

1. You can add or edit one record at a time in a table using a form. True
2. A form cannot have a different name for a table. False
3. Data can be inserted, updated, and deleted from a table using a form. True
4. You can print a report only in the landscape form. False
5. Page footer is printed at the end of every page. True

C. Answer the following questions.

1. What is a form?

Ans. Generally, a form is a piece of paper that holds different blank fields in which You
fill the required information. Similarly, in the MS Access, a form holds different fields of
a table that you use to enter and modify the data in the database.

A form is linked to a table. Using form, you can add or edit one record at a time. It is a
convenient and an interactive way of entering data, but not an appropriate tool for every
data entry. This is useful, when you work with the different users and do not want to
expose your confidential data.

2. What is the use of the Form Wizard?

Ans. To use a Form Wizard, follow these steps:


• Open an existing database and click on the Forms in the Database Objects pane.
• Select the Use Wizard to Create Form option in the Database Tasks pane.
• The Form Wizard opens.

3. Can you change the name of a label? If yes, how?

Ans. To Change the name properties of the labels, follow these steps:
• Right-click on the created form and select Edit. You will switch into the Design Mode of
the form.
• Choose a label that you wish to modify.
• Double-click on it. You will get the set of properties in the Properties: Label Field dialog
box where you can define or modify the properties of the control.

For example, change the name of the field Customer_ID to Cust_ID, and scroll down
the Background color property and choose a colour. Changes will apply immediately.

16
4. What is the use of a report in Access?

Ans. A report is a summary of your database. It is an effective way to organise and


summarise the data for viewing and printing. It consists of information obtained from
tables or queries, and presented as per the user’s requirements. Reports are generally
prepared and presented in hard copy if you need to share the information from your
database with someone but do not want that person to actually work with your database.
Reports also provide the facility to group and sort the data items, thus making it much
more readable.

5. Distinguish between a form and report.

Ans. A dynamic report generates the result of the report from the current table data.
This means that if you have some updated data in the table that feeds the report, then
the report will change accordingly. However, a static report always displays the same data
from the time when the static report was created.

17

You might also like