Unit 3 Chapter 11 Queries in Base
A. Multiple choice questions
1. Which of the following is refer to asking questions from
the database?
(a) Report
(b) Table
(c) Query
(d) Database
2. Which of the following are the ways to design a query?
(a) Wizard
(b) Design View
(c) SQL
(d) All of the above
3. Which is a flexible way to create a query?
(a) Wizard
(b) Design View
(c) Both (a) and (b)
(d) Neither (a) nor (b)
4. Into how many parts is the query design window divided?
(a) One
(b) Two
(c) Three
(d) Four
5. Which of the following is NOT true about queries?
(a) It can be created using multiple tables
(b) Multiple queries can be created in a database
(c) A query can run multiple times
(d) A query once created cannot be edited
6. Which of the following is the shortcut key to run the query?
(a) F3
(b) F4
(c) F5
(d) F6
7. Which of the following functions can be performed on
numerical data while designing a query?
(a) Sum
(b) Minimum
(c) Maximum
(d) All of the above
8. In a Query Design wizard, which of the following buttons
is clicked to move a field from ‘Available fields’ list box to
‘Fields in the query‘ list box?
(a) >
(b) < 9
(c) ∨
(d) ∧
9. Which of the following relational operators can be applied
to set the criterion while designing a query in LibreOffice
Base?
(a) >
(b) =
(c) !=
(d) All of the above
10. Which of the following dialog box is present when the
Query Design window is opened for the first time to design
a query?
(a) Add Table
(b) Add Query
(c) Add Table or Query
(d) None of the above
11. Which of the following step is not performed if there is no
numerical data to be worked upon in a query?
(a) Selection of fields
(b) Giving Aliases
(c) Summarizing
(d) Selection of tables
B. State whether the following statements are True or False
1. You can run a query only once False
2. A query cannot be created from multiple tables False
3. The shortcut key to run a query is F5. True
4. LibreOffice Base provides us with two ways to create a query. False
5. A query with numerical data cannot be saved. False
6. By default the query result is not sorted. True
7. A query can be used to display the average value of a numerical field. True
8. While designing a query, the criterion can be set on only one field. False
9. Alias is an alternative name for a field in a query. True
10. In query Design window, the visible check box is selected by default. True
11. A query once created using a wizard can only be edited in the Design view. True
C. Fill in the blanks
1. A query is a sort of question asked from a database.
2. The result of the query is displayed in report form with field names in columns
3. A query can be created in _three ways.
4. The Query Design window is divided into two sections.
5. The shortcut key to run the query is F5.
6. The conditions to filter the records are set in the criterion row.
7. When a table is selected in a Query wizard, the corresponding fields are displayed in the
available fields list box.
8.The result of the query can be displayed in ascending or descending order of any
particular field of the table.
9. At the most three search conditions can be given in the query wizard.
10. The last step of the Query wizard displays the entire overview of the query.
11. The design view is a more flexible method to create a query.
12. To edit any query, right click on the query icon of the query that has to be edited.
13. In the alias row of the Query Design grid, we can type the column heading that will be
displayed instead of field name when we run the query.
D. Answer the given questions
1. Define a query? What is the need of creating a query in a database?
Ans: A query is used to collect specific information from the pool of data. A query helps us
to join information from different tables and filter that information.
Queries are required to retrieve the desired data easily and accurately from database.
2. Rearrange the steps given below so as to create a query using a wizard.
1. Give Alias
2. Select the fields
3. Set the criterion
4. Set the sorting order
5. Give table name
Ans:
1. Give table name
2. Select the fields
3. Set the sorting order
4. Set the criterion
5. Give Alias
3. What all information is seen in the overview (last step) of the Query wizard?
ANS: Last Step of Query Wizard includes the following (Query Wizard Overview)
Name of the Query – By default, the name of the query is Query_Table1.
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.
4. What is the use of Alias row in the Design grid of the Query Design window?
Ans: Sometimes field names are not user friendly so Alias can be used to display meaningful
names of the fields in the output.
5. Name any four mathematical functions that can be applied to numerical data in a query.
Ans: Four mathematical functions that can be applied to numerical data in a query are:
1. Sum
2. Average
3. Minimum
4. Maximum
6. Name the three ways of creating a query in LibreOffice Base?
Ans: Three ways of creating a query in LibreOffice Base are:
1. Design View
2. Use Wizard
3. SQL view.