0% found this document useful (0 votes)
13 views4 pages

CHP 9

Uploaded by

Shweta Tiwari
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)
13 views4 pages

CHP 9

Uploaded by

Shweta Tiwari
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/ 4

Chp.9 .

Starting with LibreOffice Base


D. Answer the given questions
1. Differentiate between:
(a) Memo and Varchar data type
MEMO Varchar
Data type long varchar data type varchar
Stores up to the maximum length Stores upto the specified length. The number of bytes
indicated by user. It is used to store some allocated depends on the number of characters
descriptive data having more than 255 entered by the user. For example, the address is
characters. Memo data type allows to defined as varchar (50), and if the address entered by
store text data up to 64,000 characters. the user is of 20 characters then only 20 bytes will be
occupied in the database.
(b) Number and Decimal data type
Number Decimal
Numeric data types consists of Numeric data types consists of
numbers. The numbers can be integer numbers. The numbers can be integer
Or real numbers on which any type of Or real numbers on which any type of
arithmetic calculations can be arithmetic calculations can be
performed. performed.
Data type numeric Data type decimal
Range unlimited Range unlimited
(c) Design View and Datasheet view of a table
Design View Datasheet view
Creating tables using Design View A table can be created at the time of
gives us more flexibility to do our work. creating a database or after creating
database.
To create table using Design View, in To create a table at the time of creating
main Database window, click on the a database in database wizard, select
option Create Table in Design View the radio button
in the Tasks Pane and Table Design with option “Create tables using
Window will be opened the table wizard”,
The screen is broadly divided into The data sheet view interface will allow
two sections or horizontal panes. to enter the data in the
The upper half consists of a grid Table that is created using wizard
structure with three columns Field
Name, Field Type and Description.
2. Name the menu items present on the Base User Interface. Explain each.
Title Bar – The title bar displays the name of a database and an application in which
it is made. The windows buttons to maximize, minimize or close the window are
located on the right corner of the title bar.
• Menu Bar – The menu bar appears below the title bar. It consists of seven menu
items – File, Edit, View, Insert, Tools, Window and Help. All these menu items contain
commands that help to perform various operations on the database.
• Standard Toolbar – It is located below the menu bar. It is used to access frequently
used tools.
• Status Bar – It is located at the bottom of the interface window. It displays
information about the type of view of the object in the database.
Database Pane – The database pane is located on the left side of the window.

3. Label the components – Title Bar, Database Pane, Tasks Pane, Status Bar of the LibreOffice
Base User Interface.

Title bar Menu bar Formatting bar

Database Pane

Task pane

Status Bar

4. How can we define a primary key in a table?

To make a particular field as the primary key, place the mouse pointer before the
field name, for example Event Id and right click. A pop up menu appears. Select
the Primary Key option from pop up menu . A key icon appears before the field
name indicating that it is a primary key.
5. Write steps to sort the table in descending order of primary key.
Step 1. Open the Event table in datasheet view and select the field on which you
want to sort. the field “Points” is selected to sort the records in ascending order.
Step 2. From the tool bar click Sort Descending icon if the table has to be sorted in
descending order of selected field.
Step 3. The table will be sorted in the descending order of points.

What is the use of navigation box with respect to tables in a database?


The black pointing arrow ( )just before the field name is the record pointer. To
navigate through various records of the table, we use the navigation box present
at the bottom of the datasheet window.

Extra ques
What is sorting?
Data in a table can be arranged in ascending or descending order. This process of
arranging the records in particular order on any filed is called as sorting.

Name the various components of Navigation Box.


The various components of Navigation Box are as follows:
• Record Selector Box – T his is the text box where the currently active record number
is displayed. We may enter the record number that we want to
see in this text box.
• Navigation Buttons – These are used to scroll vertically in the table.
Press ◄ to move to the first record
Press ► and ◄ to move to the next and previous records respectively.
Press ► to move to the last record.
Name various numeric and text data type.
numeric data type text data type

Database: A database is an organized collection of data. You can visualize it as a container of


information.

Table: 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.

Field: 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.

Composite Primary Key:When primary key constraint is applied on one or more columns then it is
known as Composite Primary Key.

Forms: A form provides the user a systematic way of storing information into the database. It is an
interface in a user specified layout that lets users to view, enter, and change data directly in
database objects such as tables.

Reports : A report helps to display the data in a summarized manner. It is used to generate the
overall work outcome in a clear format.

You might also like