Class 8 CH 2
Class 8 CH 2
S
Primary key is a field in a table, which identifies a
___________________________________________________________________
N
record uniquely.
___________________________________________________________________
2. What is the use of Caption property?
IO
Caption property lets you define a more relevant name in a
___________________________________________________________________
field.
___________________________________________________________________
3. What is Validation text?
4.
AT
Validation text provides a message to the user who has
___________________________________________________________________
fed wrong data as against the defined validation rule.
___________________________________________________________________
Name the tab that contains the primary key button.
IC
Design tab
___________________________________________________________________
BL
2. Queries
Query Wizard button lies under the Create tab in __________
group.
3. Reports represents the data in formatted and presentable
__________
manner.
Query is used to retrieve information from tables based on
K
4. _________
the defined criteria.
TU
Exercises
(A) Fill in the blanks with the help of the hints.
Create tab in Queries group.
1. Query Design button lies under _________
2. Super key is a combination of fields that uniquely identifies a
________
record in a table.
Computer-8
3. Field Size Property is used to set maximum size of data
____________
stored in a field.
4. Sort is used to display records in ascending or descending
______
order in query.
S
1. What is a report?
Ans. Report is a formatted version of data used for
N
displaying it in printable manner. Reports cannot be
edited by a user.
IO
2. What is Super key?
Ans. Super key is a combination of fields that uniquely
identifies a record.
3.
Ans. AT
What do you understand by required property?
The required field ensures, the data is must for the field
or not. If the required property is set at 'Yes', it
becomes compulsory to enter a value in the field.
IC
4. What is a query?
Ans. A Query allows a user to retrieve data from tables
BL
based on criteria.
________________________.
TU
a) selected fields
b) query fields
c) ✔ available fields
3. Which criteria is correct for eligibility to vote?
a) <=18 b) >18 c) ✔ >=18
Computer-8
4. Which format of data provide us non-editable copy of data?
a) ✔ report b) form c) table
S
Reports group.
ii. Choose a query from the drop-down list and move the
N
fields from Available Fields to Selected Fields items and
click on Next.
IO
iii. Use grouping to group the items under available
categories if required. Click on Next.
iv. Apply sorting of data if needed and click on Next.
AT
v. Choose the format of the report and page orientation
and click on Next.
vi. Type the title for your report. Choose Preview the
IC
report and click on Finish.
2. Write different methods of creating query.
Ans. MS Access 2010 allows creating queries in two ways:
BL
Query Wizard
It is the simplest way to create a query in MS Access. It comes
with a pre-defined set of instructions where a user can
PU
Select the field above which you want to insert a new field.
Right click and select Insert Rows, and insert a new field
above the selected field.
To delete a field in an existing table, open the table in the
design view.
Computer-8
Select the field you want to delete. Right click and select
Delete Rows. A confirmation box will appear and you would
be asked to re-confirm deleting the field. Click on Yes to
delete the record.
4. Describe the process of creating queries using multiple tables
in MS Access.
S
Ans. Steps to generate a query using multiple tables:
i. Click on Relationships under Database Tools Tab.
N
a. The Show Table dialog box appears. Select the
table and click on Add to add tables in
IO
Relationships window.
b. To create a relationship, simply drag a field from
one of the table to a field on the other table. The
AT
condition to create relation between tables is that,
it is mandatory for both the fields to have identical
data type in each table. The Edit Relationships
dialog box will appear.
IC
c. Click on Create to create the relationship among
the tables.
ii. Click Query Wizard under Create Tab and choose
BL
iv. Now select the other table and move the fields from
Available Fields to Selected Fields list.
v. Select Detail and then click on Next.
vi. Type the name of the query. Click on Finish to view the
K
information.
TU
(E) State whether these statements are True or False. Correct the
False statements also.
1. Primary key can contain a null value.
False. Primary key cannot contain a null value.
___________________________________________________________________
Computer-8
2. Default value property is used to give a more relevant name to
the field.
False. Caption property is used for giving more relevant
___________________________________________________________________
name to the field.
___________________________________________________________________
3. If you delete a field, all the data of the respective field will be
lost from the table.
S
True
___________________________________________________________________
4. Table can only be created in Design view.
N
False. Table can be created in Design view and Database view.
___________________________________________________________________
IO
AT
IC
BL
PU
K
TU
Computer-8