402-IT ClassX
402-IT ClassX
402-IT ClassX
INFORMATION TECHNOLOGY-
402 CLASS-X
SESSION-2020-21
(DRAFT STUDY
MATERIAL)
1|Page
UNIT 1: DIGITAL DOCUMENTATION (ADVANCED)
2|Page
SESSION 1: CREATE AND APPLY STYLES IN THE DOCUMENT
A style is a set of formats that you can apply to selected pages, text, frames, and
other elements in your document to quickly change their appearance. When you
apply a style, you apply a whole group of formats at the same time.
Styles are logical attributes. Using styles means that you stop saying “font size 14pt,
Times New Roman, bold, centered”, and you start saying “Title” because you have
defined the “Title” style to have those characteristics. In other words, styles mean
that you shift the emphasis from what the text (or page, or other element) looks like,
to what the text is.
Styles help improve consistency in a document. They also make major formatting
changes easy. For example, you may decide to change the indentation of all
paragraphs, or change the font of all titles. For a long document, this simple task can
be prohibitive. Styles make the task easy.
OpenOffice.org supports the following types of styles:
• Page styles include margins, headers and footers, borders and backgrounds. In
Calc, page styles also include the sequence for printing sheets.
• Paragraph styles control all aspects of a paragraph’s appearance, such as text
alignment, tab stops, line spacing, and borders, and can include character
formatting.
• Character styles affect selected text within a paragraph, such as the font and size
of text, or bold and italic formats.
• Frame styles are used to format graphic and text frames, including wrapping
type, borders, backgrounds, and columns.
• Numbering styles apply similar alignment, numbering or bullet characters, and
fonts to numbered or bulleted lists.
• Cell styles include fonts, alignment, borders, background, number formats (for
example, currency, date, number), and cell protection.
• Graphics styles in drawings and presentations include line, area, shadowing,
transparency, font, connectors, dimensioning, and other attributes.
3|Page
• Presentation styles include attributes for font, indents, spacing, alignment, and
tabs.
Applying styles
OpenOffice.org provides several ways for you to select styles to apply.
1)
Click the Styles and Formatting icon located at the left-hand end of the object
bar, or click Format > Styles and Formatting, or press F11.
The Styles and Formatting window shows the types of styles available for the
OpenOffice (OpenOffice.org) component you are using.
Figure 1.1 shows the window for Writer, with Page Styles visible.
Figure1.1: The Styles and Formatting window for Writer, showing paragraph styles
You can move this window to a convenient position on the screen or dock it to an
edge (hold down the Ctrl key and drag it by the title bar to where you want it
docked).
2)
Click on one of the icons at the top left of the Styles and Formatting window to
display a list of styles in a particular category.
3)
To apply an existing style (except for character styles), position the insertion point in
the paragraph, frame, or page, and then double-click on the name of the style in one
of these lists. To apply a character style, select the characters first.
4|Page
Using Fill Format mode
Fill format mode is used to apply a style to many different areas quickly without
having to go back to the Styles and Formatting window and double-click every time.
This method is quite useful when you need to format many scattered paragraphs,
cells, or other items with the same style.
1) Open the Styles and Formatting window and select the style you want to apply.
5|Page
Figure 1.2: Naming a new style created from a selection
4. In the Create Style dialog, type a name for the new style. The list shows the names
of existing custom styles of the selected type. Click OK to save the new style.
Modifying Styles
OpenOffice.org provides several ways to modify styles (both the predefined styles
and custom styles that you create):
• Updating a style from a selection
• Load or copy styles from another document or template
Any changes you make to a style are effective only in the current document. To
change styles in more than one document, you need to change the template or copy
the styles into the other documents.
6|Page
Updating A Style From A Selection
Figure 1.4. Copying styles from a template into the open document
7|Page
3. On the Load Styles dialog (Figure 1.4), find and select the template you want to
copy styles from.
4. Select the categories of styles to be copied. Select Overwrite if you want the
styles being copied to replace any styles of the same names in the document you
are copying them into.
5. Click OK to copy the styles. You will not see any change on screen.
To copy the styles from another document, click the From File button to open a
window from which you can select the required document.
ACTIVITY
1. Write your resume/ Bio Data and apply different styles on it,
2. Create a pamphlet on Cyber Awareness. Apply different styles on it
QUESTIONS
Relevant Knowledge
8|Page
Drag and Drop
1. Open a file browser window and locate the image you want to insert.
2. Drag the image into the Writer document and drop it where you want it to appear.
A faint vertical line marks where the image will be dropped.
This method embeds (saves a copy of) the image file in the Writer document. To link
the file instead of embedding it, hold down the Control+Shift keys while dragging
the image.
1. Click in the Open Office document where you want the image to appear.
2. Choose Insert > Picture > From File from the menu bar.
3. On the Insert Picture dialog (see Figure 1.5), navigate to the file to be inserted,
select it, and click Open.
At the bottom of the dialog are two options, Preview and Link. Select Preview to
view a thumbnail of the selected image on the right, so you can verify that you have
the correct file. See below for the use of Link.
If the application from which the graphic was copied is closed before the graphic is
pasted into the target, the image stored on the clipboard could be lost.
10 | P a g e
1.
To open the Gallery, click on the Gallery icon (located in the right side of the
Standard toolbar) or choose Tools > Gallery from the menu bar.
2.
Navigate through the Gallery to find the desired picture.
3.
To insert the picture, click and drag it from the Gallery into the Writer document.
You can also right-click on the picture and choose Insert>Copy.
Figure 1.6 shows an example of an image dragged from the Gallery.
By default, the Gallery is docked above the Writer workspace. To expand the
Gallery, position the pointer over the line that divides it from the top of the
workspace. When the pointer changes to parallel lines with arrows, click and drag
downward. The workspace resizes in response.
11 | P a g e
To expand the Gallery without affecting the workspace, undock it so it floats over
the workspace. To do so, hold down the Control key and double-click on the upper
part of the Gallery next to the View icons. Double-click in the same area while
holding down the Control key to dock it again (restore it to its position over the
workspace).
When the Gallery is docked, to hide it and view the full Writer workspace, click the
in the middle of the thin bar separating the Gallery from the workspace.
To close the Gallery, choose Tools > Gallery to uncheck the Gallery entry, or click
on the Gallery icon again.
Modifying An Image
When you insert a new image, you may need to modify it to suit the document. Here
we will discuss the use of the Picture toolbar, resizing, cropping, and a workaround
to rotate a picture.
Graphics mode
You can change color images to grayscale by selecting the image and then selecting
Grayscale from the Graphics mode list.
12 | P a g e
relevant icon.
13 | P a g e
Filters
Table 1 provides a short description of the available filters, however the best way to
understand them is to see them in action. Feel free to experiment with the different
filters and filters settings, remembering that you can undo all the changes by
pressing Ctrl+Zor Alt+Backspaceor by selecting Edit > Undo.
Color
Use this toolbar to modify the individual RGB color components of the image (red,
green, blue) as well as the brightness, contrast, and gamma of the image. If the result
is not satisfactory, you can press Ctrl+Z to restore the default values.
Table 1: Graphic filters and their effects
Icon Name Effect
Inverts the color values of a color image or the
Invert
brightness values of a grayscale image.
Smooth Softens the contrast of an image.
Sharpen Increases the contrast of an image.
Remove noise Removes single pixels from an image.
Mimics the effects of too much light in a picture. A
Solarization
further dialog box opens to adjust the parameters.
Simulates the effects of time on a picture. Can be
Aging applied several times. A further dialog box opens to
adjust the aging level.
Makes a picture appear like a painting by reducing
Posterize
the number of colors used.
Pop Art Modifies the picture dramatically.
14 | P a g e
Transparency
Modify the percentage value in the Transparency box on the Picture toolbar to make
the image more transparent. This is particularly useful when creating a watermark or
when wrapping the image in the background.
Cropping Images
When you are only interested in a section of the image for the purpose of your
document, you may wish to crop (cut off) parts of it. To start cropping the image,
right click on it and select Picture from the pop-up menu. In the Picture dialog box,
select the Crop page (see Figure 1.7).
When Keep scale is selected (default), cropping the image does not change the scale
of the picture.
When Keep image size is selected, cropping produces enlargement (for positive
cropping values), shrinking (for negative cropping values), or distortion of the image
so that the image size remains constant.
The image is cropped by the amount entered in these boxes. For example, a value of
3cm in the Left box cuts 3 cm from the left side of the picture.
• When Keep scale is selected, the size of the image also changes, so in this
example the width will be reduced by 3 cm.
• When Keep image size is selected, the remaining part of the image is enlarged
(when you enter positive values for cropping) or shrunk (when you enter negative
values for cropping) so that the width and height of the image remains
unchanged.
Resizing an Image
The inserted image might not fit perfectly into the document if it is too big or too
small. In these cases, you can use Writer to resize the image.
1. Click the picture, if necessary, to show the green resizing handles.
2. Position the pointer over one of the green resizing handles. The pointer changes
16 | P a g e
shape giving a graphical representation of the direction of the resizing.
17 | P a g e
3. Click and drag to resize the picture.
4. Release the mouse button when satisfied with the new size.
The corner handles resize both the width and the height of the graphic object
simultaneously, while the other four handles only resize one dimension at a time.
To retain the original proportions of the graphic, Shift+click one of the corner
handles, then drag. Be sure to release the mouse button before releasing the Shift key.
Be aware that re-sizing a bit-mapped (raster) image will adversely affect the
resolution, causing some degree of blurring. It is better to externally size your picture
correctly before insertion into your presentation, if possible.
Figure 1.8 shows three examples of an image inserted into a document and resized.
Figure 1.8. Three examples of resized images, plus the original image
18 | P a g e
For more accurate resizing, use either the Crop page of the Picture dialog box
(Figure 1.7) or, for images, the Type page of the Picture dialog box. On the Crop
page you can adjust the following settings:
Scale Width and Height: specify in percentages the scaling of the picture. The
size of the image changes accordingly. For a scaled resizing, both values should
be identical.
Image size: specify the size of the image in your preferred unit of measurement.
The image enlarges or shrinks accordingly.
Original size button: when clicked, restores the image to its original size.
In the Type page of the Picture dialog box, select the Relative option to toggle
between percentage and actual dimension. For a scaled resizing, select the Keep
ratio option. As for the Crop page, clicking on the Original Size button restores the
original image size.
Rotating a Picture
Writer does not provide a tool for rotating a picture; however, there is a simple
workaround:
1. Open a new Draw or Impress document (File > New > Drawing or File > New >
Presentation).
2. Insert the image you want to rotate. You can use any of the mechanisms
described in “Error! Reference source not found.” on page Error! Bookmark
not defined., although there are some slight variations in the position of the menu
entries and icons.
3. Select the image, then in the Drawing toolbar (shown by default at the bottom of
the window in Impress and Draw), select the Rotate icon from the Effects
tear- off toolbar .
4. Rotate the image as desired. Use the red handles at the corners of the picture and
move the mouse in the direction you wish to rotate. By default the picture rotates
around its center (indicated by a black crosshair), but you can change the pivot
point by moving the black crosshair to the desired rotation center.
19 | P a g e
To restrict the rotation angle to multiples of 15 degrees keep the Shift key pressed
while rotating the image.
5. Select the rotated picture by pressing Ctrl+A, then copy the image to the
clipboard with Ctrl+C.
6. Finish by going back to the location of the Writer document where the image is to
be inserted and pressing Ctrl+V.
to a drawing-functions pointer .
3. Move the cross-hair pointer to the place in the document where you want the
graphic to appear and then click-and-drag to create the drawing object. Release
the mouse button. The selected drawing function remains active, so you can draw
another object of the same type.
20 | P a g e
4. To cancel the selected drawing function, press the Esc key or click on the Select
icon (the arrow) on the Drawing toolbar.
5. You can now change the properties (fill color, line type and weight, anchoring,
and others) of the drawing object using either the Drawing Object Properties
toolbar or the choices and dialog boxes reached by right-clicking on the drawing
object.
Set or Change Properties For Drawing Objects
To set the properties for a drawing object before you draw it:
The same considerations for resizing an image apply also to resizing an object. Select
the object, click on one of the eight handles around it and drag it to its new position.
For a scaled resizing, select one of the corner handles and keep the Shift key pressed
while dragging the handle to its new position.
Select Format > Object > Position and Size from the menu bar.
Use the Position and Size dialog box to set the width and height independently.
If the Keep ratio option is selected, then the two dimensions change so that
the proportion is maintained, allowing for a scaled resizing.
1. Select one object, then hold down the Shift key and select the others you want to
include in the group. The bounding box expands to include all the selected
objects.
2. With the objects selected, hover the mouse pointer over one of the objects and
choose Format > Group > Group from the menu bar or right-click and choose
Group > Group from the pop-up menu.
You cannot include an embedded or linked graphic in a group with drawing objects.
When you add a graphic to a text document, you need to choose how to position it
22 | P a g e
with respect to the text and other graphics. The positioning of graphics is often rather
23 | P a g e
time consuming and may be very frustrating for both inexperienced and experienced
users. As Writer is a word processor rather than a desktop publishing program, there
are some limitations to the flexibility in positioning images and it takes time to get
things exactly as you would like them.
Positioning of a graphic is controlled by four settings:
1. Arrangement refers to the placement of a graphic on an imaginary vertical axis.
Arrangement controls how graphics are stacked upon each other or relative to the
text.
2. Alignment refers to the vertical or horizontal placement of a graphic in relation to
the chosen anchor point.
3. Anchoring refers to the reference point for the graphics. This point could be the
page, or frame where the object is, a paragraph, or even a character. An image
always has an anchor point.
4. Text wrapping refers to the relation of graphics to the surrounding text, which
may wrap around the graphic on one or both sides, be overprinted behind or in
front of the graphic, or treat the graphic as a separate paragraph or character.
The settings can be accessed in a number of ways, depending on the nature of the
graphics:
1. From the Format menu, where you can find Alignment, Arrange, Wrap, and
Anchor (both for images and drawing objects).
2. From the pop-up menu displayed when you right-click on the graphic.
3. From the Object toolbar shown in Figure 1.11.
4. For images, from the Type and Wrapping pages of the Picture dialog box.
Note that you cannot control the arrangement using the dialog box. To open
the Picture dialog box, click on the image to select it and then choose Format
> Picture or right-click on the graphic and choose Picture on the pop-up
menu.
5. For drawing objects, from the Position and Size page of the Position and Size
dialog box. To open the Position and Size dialog box, click on the drawing
object to select it and then choose Format > Object > Position and Size or
right-
24 | P a g e
click on the graphic and choose Position and Size on the pop-up menu. Note
that you can only control the alignment and anchoring.
25 | P a g e
Templates can contain anything that regular documents can contain, such as text,
graphics, a set of styles, and user-specific setup information such as measurement
units, language, the default printer, and toolbar and menu customization.
All documents in OpenOffice.org are based on templates. You can create a specific
template for any document type (text, spreadsheet, drawing, presentation). If you do
not specify a template when you start a new document, then the document is based
on the default template for that type of document. If you have not specified a default
template, Open Office uses the blank template for that type of document that is
installed with Open Office.
Creating a Template
You can create your own templates in two ways: from a document, and using a wizard.
1. From the main menu, choose File > Wizards >[type of template required](see
Figure 1.13).
27 | P a g e
Figure 1.13. Creating a template using a wizard
1. Follow the instructions on the pages of the wizard. This process is slightly
different for each type of template, but the format is very similar.
2. In the last section of the wizard, you can specify the name and location for
saving the template. The default location is your user templates directory, but
you can choose a different location if you prefer.
3. Finally, you have the option of creating a new document from your template
immediately, or manually changing the template. For future documents, you can
reuse the template created by the wizard, just as you would use any other
template.
Double-click the template or click on open to open it. Now you can use the template
according to your choice.
Updating a Document
To update a document simply goto File Save As and all changes made to the
document will be saved.
ACTIVITY
QUESTIONS:
1. What are templates? What are the advantages of using templates?
2. What is the difference between styles and templates?
3. Explain different ways of creating a template.
31 | P a g e
SESSION 4. CREATE AND CUSTOMIZE TABLE OF CONTENTS
Writer’s table of contents feature lets you build an automated table of contents from
the headings in your document. Before you start, make sure that the headings are
styled consistently. For example, you can use the Heading 1 style for chapter titles
and the Heading 2 and Heading 3 styles for chapter subheadings.
1. When you create your document, use the following paragraph styles for different
heading levels (such as chapter and section headings): Heading 1, Heading 2,
and Heading 3. These are what will appear in your table of contents. You can use
more levels of headings, but the default setting is to use only the first three levels
in the table of contents.
2. Place the cursor where you want the table of contents to be inserted.
3. Select Insert > Indexes and Tables > Indexes and Tables.
4. Change nothing in the Insert Index/Table dialog. Click OK.
If you add or delete text (so that headings move to different pages) or you add,
delete, or change headings, you need to update the table of contents. To do this:
32 | P a g e
Figure 1.14. The Index/Table tab.
Use the Index/Table tab, pictured in Illustration 1 on page 1, to set the table's
attributes.
1. From the Type drop-down list in the Type and title area of the tab, select Table
of Contents if it isn't already selected.
2. From the drop-down list in the Create index/table area, select Entire document.
3. In the Create from area, check the Outline check box.
4. In the Create from area, clear the Index marks check box.
33 | P a g e
Adding A Title
If you'd like the table of contents to have a title, enter it in the Title field. (If Writer
entered a title in this field automatically, you can change it by simply typing over the
value.) To delete the title, clear the Title field.
To protect the table of contents from being changed accidentally, check the
Protected against manual changes check box.
If this box is checked, the table of contents can only be changed using the context
menu or the Insert Table/Index window.
If the box isn't checked, the table of contents can be changed directly on the
document page, just like other text.
By default, Writer evaluates 10 levels of headings when it builds the table of contents.
To change the number of levels evaluated, enter the desired number in the Evaluate
up to level spin box.
Writer automatically assigns to the table of contents all paragraphs formatted with the
default heading styles (Heading 1, Heading 2, and so on). To assign paragraphs
formatted with custom styles, follow these steps:
1. In the Create from area, check the Additional Styles check box.
2. Click the (...) button to the right of the check box. The Assign Styles window opens.
34 | P a g e
Figure 1.15. Assign Styles window
3. In the Not applied column, click the style that you want to assign to the table of
contents.
4. Use the >> button to move the selected style to the desired outline level. For
example, if you want paragraphs formatted with the selected style to appear as
top- level entries in the table of contents, click the >> button once to move the
style into the 1 column. To move the style in the opposite direction, use the <<
button.
5. Click OK to save your changes and return to the Index/Table tab. Or, click Cancel
to return without saving your changes.
Use the Entries tab, pictured in Illustration 3 on page 4, to format the entries in the
table of contents. For each outline level, you can add and delete elements, such as
35 | P a g e
chapter numbers, and you can also apply character styles to individual elements.
36 | P a g e
Figure 1.16. Entries tab
To begin, click a level number in the Level column to select the outline level whose
elements you want to format. (You'll be able to apply your changes to all outline
levels later.) The Structure line displays the elements for entries in that level. Each
button on the Structure line represents one element:
37 | P a g e
The T button represents a tab stop.
The # button represents the page number.
The LS button represents the start of a hyperlink. (This button doesn't appear on the
default Structure line.)
The LE button represents the end of a hyperlink. (This button doesn't appear on the
default Structure line.)
Deleting Elements
To delete an element from the Structure line, click the button that represents that
element and then press the Delete key on your keyboard. For example, to delete a tab
stop, click the T button and then press the Delete key.
Adding Elements
1. Place your cursor in the white field to the left of where you want to insert the element.
2. Click one of the five buttons that are just below the Structure line. (For example, to
add a tab stop, click the Tab stop button.) A button representing the new element
appears on the Structure line.
Note that if you insert a hyperlink, you must indicate both the beginning and end of the
link. For example, to change the default Structure line so that the chapter number and
the entry text form a hyperlink, follow these steps:
1. On the Structure line, place your cursor in the white field to the left of theE# button.
(Recall that the E# button represents the chapter number.)
2. Click the Hyperlink button. An LS button, representing the start of the hyperlink,
appears on the Structure line.
3. On the Structure line, place your cursor in the white field to the right of theE button.
(Recall that the E button represents the entry text.)
4. Click the Hyperlink button again. An LE button, representing the end of the
hyperlink, appears on the Structure line.
38
Applying Character Styles
1. On the Structure line, click the button that represents the element to which you
want to apply a style.
2. From the Character Style drop-down list, select the desired style. Writer applies
the selected style to the selected element.
To view or edit the attributes of a character style, select the style from the Character
Style drop-down list and then click the Edit button.
To apply the displayed structure and formatting to all outline levels, click the All button.
Use the Styles tab, pictured in Illustration 4 on page 6, to apply paragraph styles to the
table of contents. You can apply a different paragraph style to each outline level of the
table.
39
To apply a paragraph style to an outline level, follow these steps:
1. In the Levels list box, select the desired outline level by clicking it.
2. In the Paragraph Styles list box, click the paragraph style that you want to apply.
3. Click the < button to apply the selected paragraph style to the selected outline level.
1) In the Levels list box, select the desired outline level by clicking it.
2) Click the Default button.
To view or edit the attributes of a paragraph style, click the style in the Paragraph Styles
list box and then click the Edit button.
Use the Background tab, pictured in Illustration 5 on page 7, to add color or a graphic
to the table background.
Adding Color
e table of contents, simply click the desired color in the color grid.
40
Adding A Graphic
To add a graphic to the background of the table of contents, follow these steps:
1. From the As drop-down list, select Graphic. The Background tab displays the
graphics options.
2. Find the graphic file that you want to use and then click the Open button. The Find
Graphics window closes and the selected graphic appears in the graphic preview box
on the right-hand side of the Background tab. (If you don't see the graphic, check
the Preview check box underneath the graphic preview box.)
3. In the Type area of the Background tab, choose how you want the background
graphic to appear:
● To stretch the graphic so that it fills the entire background area, select Area.
● To repeat the graphic across the entire background area, select Tile.
41
Deleting Color Or Graphics
To delete color or graphics from the table background, follow these steps:
To save the table of contents so that the table appears in your document, click OK. The
Insert Index/Table window closes and the table of contents appears in your document.
42
Note: Writer won't prompt you to confirm the delete! Use caution when deleting a table
of contents.
ACTIVITY
Create a table of contents for topics of any subject of your choice.
QUESTIONS:
1. Create table of contents for your project.
43
2. Save the document with the appropriate name, like mailmerge_openenrollment.ods or
mailmerge_parents.odt.
Note: Don’t save it in Word format. You must save it in OpenOffice.org Writer format
or the mail merge won’t work.
3. Write out the text that will be going to everyone, and plan where you want the fields.
For instance, you might know that you are going to have an address block at the top of
the letter, so you’ll leave a few blank lines for that. Then you’d write something like
this, know that you’d add the fields firstname and years_of_service later:
Dear ,
Remember that next month is open enrollment for benefits. Employees with over five
years of experience are also eligible for sabbatical; you have been with us for years so
please get your application in early if you plan to apply.
Regards,
Human Resources
If you’re doing anything complex and this is your first mail merge letter, write out the
letter completely as you want it to read including sample data. Use all the text, including
samples for firstname, lastname, etc. This will help you determine which fields you
need to use, where you need spaces before and after fields, etc.
In the following example, for instance, if you want to communicate this, you’ll need to
use fields from the database for title, lastname, childs_name, study_area, and test_score.
44
4. Once you have the letter written out and you know what fields you need, you can
delete the specific data like “Ms. Smithson” and insert the fields from the database
instead.
45
3. Select the type of data: spreadsheet data, text file data, your particular type of
address book, or the type of database you’re using like Access or mySQL. It’s very
important to select the right type.
3. Click Next.
4. What you do here depends on what you chose as the type of data you’re working with.
Spreadsheet
You’ll see this window. Click the Browse button and find the spreadsheet containing
your data. Then click Next and continue to step 5.
46
Figure 1.22 : Selecting the spreadsheet in Database Wizard
Text File
You’ll see this window. Click the Browse button and find the directory containing your
text files.
47
Fill out the rest of the information:
Specify the type of files you want to access: Specify whether the file name ends in .txt
or .csv.
Row format: In the Field Separator list, specify what character separates each column:
a tab, a comma, etc. Tab and comma are common. In the other lists, if 11111you don’t
know the characters used to indicate each type of information, just leave the defaults as
is.
Then click Next and continue to step 5.
Access
You’ll see this window. Click the Browse button and find the .mdb Access file
containing your data. Then click Next and continue to step 5.
48
Address book
You don’t have to specify anything if you choose to get your data from your email
address book; the system automatically finds it. Continue to step 5.
5. In this window, just be sure to keep the option for registering selected. Unmark the
selection to open the database for editing unless you want to see the database editing
window. (You don’t need to unless you want to make a query or other database-related
item, which we haven’t talked about yet.)
Figure 1.25 : Deciding how to proceed after saving the database in Database Wizard
Click Finish.
6. You’ll be prompted to save the database file. Name it something very descriptive; this
is the name you’ll be looking for when you’re adding database files to your mail merge
documents. The name can be the same as the data source that you’re basing it on, or
entirely different. The file will end in .odb and be stored in whatever directory you
choose. It doesn’t have to be in the same directory as the data.
49
Figure 1.26 : Saving the database
7. You can see your databases by pressing F4 when you’re in a Writer or Calc
document. Click the + icon next to the database you created to see the items named
Queries and Tables. Click the + next to Tables to see the tables you created; select a
table to see the data in it.
When you’re done viewing your databases, press F4 again to hide the pane.
50
You’re done creating the database file. You only need to do this once for every
spreadsheet, database, or directory of text files.
51
b. Drag the field name into the letter to the place where you want it. The mouse will
have a + attached to it as shown.
c. Release the mouse. The field will appear. You won’t see the data yet; you’ll see the
field name.
4. If you didn’t get it exactly where you want it, just select it, and cut and paste it to
the place where you want it. The easiest way to select a field is to click on the right side
of it, hold down the Shift key, and press the left keyboard key once. Then it’s selected
and you can cut or copy.
5. Drag in all the other fields you want, the same way. If you want a field in the
letter twice, you can drag it twice, or drag it in once, then copy and paste it to the other
location.
6. The fields should display with a gray background, as shown. It won’t print; it just
helps you see which text is from the database and which text you typed.
7. Format the document any way you want it. The fields respond to formatting the
same way that normal text does.
8. You’re done creating the mail merge document. You only need to do this once.
The next step is to either print the letter to a printer, or “print” to a Writer file so you
can see all the data merged, and so you can customize, before printing on paper.
Continue to the printing step.
Editing a saved file of mailing labels
To edit a saved file of mailing labels, open the saved label file in the normal way. You
will be prompted to update all links. Choose No for the following reason: The first label
on the page is termed the “Master Label” and all other labels are linked to it. If you
update the links, then all labels will end up containing the same data, which is probably
not what you want. You can edit individual records in the normal way, by highlighting
and changing the font name, for example.
52
However, you cannot edit all labels globally (for example, to change the font name for
all records) by the technique of selecting the entire document. To achieve this result you
have to edit the paragraph style associated with the label records as follows.
53
Figure 1.31: Select Database, Table, label Brand, and label Type
54
● You can now save your label template if you are likely to use it again. Click Save.
● In the Save Label Format dialog that opens (), enter names for your label Brand
and Type. Click OK.
Figure 1.34: Move fields from Database field list to Label text area
● Continue adding fields and inserting desired punctuation, spaces, and line breaks
until the label is composed. shows the completed label.
55
Figure 1.35: The completed label
● Click New Document. You now have a new, single-page document containing a
series of frames, one for each label of the selected type and filled with the data source
address fields that you selected. Quite often some of the fields in your address data
source will be unused, leading to blank lines in your labels. If this is not important, go to
“” on page; otherwise, continue with “”.
56
You will now see that address field separation is created by line breaks ( ), rather than
paragraphs ( ). As the suppression of blank address fields depends on hiding
paragraphs, not lines, you need to replace line breaks with paragraphs as follows.
● Click in the first label, at the end of the last data source address field in the first
line of the label. Press Delete to remove the new line character and then press Return (or
the Enter key) to insert a paragraph marker. Repeat this action for each line in the
address. If the line spacing in the first label is not satisfactory, you may wish to correct
this before proceeding, by modifying the paragraph style associated with the address.
Unless you have changed it, the address uses the Default style.
Note: The objective of step 3) is to replace all line breaks at the end of data source
address fields with paragraphs. Sometimes the address data field may be longer than
the width of the label and will wrap to the next physical line: make sure that you are not
misled by this into deleting and replacing anything other than line break characters.
● Click again at the end of the first paragraph to be conditionally suppressed and
then choose Insert > Fields > Other. Select the Functions tab and then click on
Hidden Paragraph in the Type column. Now click in the Condition box and enter the
details of the condition that defines a blank address field. It has the general form of:
![Database.Table.Database field] where the „!‟ (NOT) character indicates the negative
case and the square brackets indicate the condition.
For example, in our Points database the condition to test if the Last Name field is empty
would be
![Points.Sheet1.Last Name] as illustrated in .
To test for multiple conditions, use the operators AND and/or OR between the
conditional statements, for example:
![Points.Sheet1.Title]AND![Points.Sheet1.Last Name]
Click Insert, but do not close the dialog until all lines have been
amended.
● Repeat for each paragraph to be conditionally suppressed, remembering to
advance the cursor to the end of the line in question before changing the last element of
the condition and Inserting the result.
Note: The last paragraph of the label address block ends with a special field, Next
record: Database. Table (Next record: Points.Sheet1in our example), and the Hidden
57
paragraph
58
field must be inserted before this field. This can generally be accomplished by clicking
at the end of the paragraph and then using the Left Arrowkey once to skip back over it.
A clue that you omitted this action is the observation that some records have been
skipped and are missing from the final output.
Printing
● Choose File > Print. The message shown in appears. Click Yes to print.
● In the Mail Merge dialog (), you can choose to print all records or selected records.
To select records to be printed, use Ctrl+click to select individual records. To select
a block of records, select the first record in the block, scroll to the last record in the
block, and Shift+click on the last record.
● Click OK to send the labels directly to the printer.
If you prefer to save the labels to a file, perhaps to allow some later editing such as
changing the typeface or paragraph format, then you should select File in the output
section of the Mail Merge dialog, rather than using the default Printer selection. This
changes the dialog to highlight the Save merged document section, where Save as single
document is preselected.
In this case, clicking OK brings up the Save as dialog, where a file name can be entered
for the saved labels.
If you did not save the prototype label fields document (template) in Step 6 of the
Removing blank lines from documents paragraph, then you are prompted to do so now
by another Save as dialog.
59
In either case, whether printing or saving to file, despite there apparently being only one
page of labels, the printed or saved output will be expanded to include all of the selected
records from the data source.
To print to a file – that is, to just generate a Writer document with the merged results –
select File and Save as Single Document. Then click OK.
60
Figure 1.37: Saving the merged document
You’ll see the print monitor counting through the records.
Now choose File > Open and open that file you just named.
Note: When you open the output from merged labels, don’t click yes when you see this
message. Click No. If you click Yes accidentally, just close it without saving, and
reopening it, clicking No this time.
61
Figure 1.38: The merged document
And merged labels:
62
At this point you can view the document and proof it, make any changes you want, and
save it. Then to print it, just print it like a normal document, since it’s already merged
with the data from the database.
ACTIVITY
1. Type a letter inviting friends and/or family to a party you are hosting. For
example, you can host a birthday party or your parents‟ anniversary party. You
pick the event. Your letter will serve as your form letter. Save your letter as Mail
Merge Letter.
2. Format the letter as left aligned (block letter) with .5” or 1” margins depending on
the length.
3. Make sure your address is listed at the top of the document. Then insert two blank
lines and put the date in the month, date, year format. Then enter four blank lines
and leave space for your merge fields. Example:
Title First Name Last
Name Address 1
Address 2 City,
State Pin Code
(Eventually you will be entering your merge fields to replace this information.)
4. Create a data source with the names and addresses of at least five families in
which you wish to mail the letters. Create fields such as: title, first name, last
name, address 1, address 2, city, state, and pin code. Or make appropriate field
names of your choice but make sure you include the address information. Save
your data source as Mail Merge Data.
5. Now, return to your main document (Mail Merge Letter) and set it as the form
document and identify your data source.
6. Enter your merge fields into your main document. Merge fields should be used for
the recipients address and after Dear.
7. After your merge fields are entered merge the document and save it. Save the
merged document as Mail Merge Merged.
8. Create labels inserting your merge fields for the recipient’s name and address. Save
the merged labels as Mail Merge Labels.
9. Print your form letter, one merged letter, and one label.
63
Let's Practice
Open the Word Processing software and prepare the following labels for
• Schools to invite parents for annual function
• A Tech Magazine who wants to send flyers to its clients
QUESTIONS
1. Explain Mail Merge.
2. What are advantages of Mail Merge?
3. Give examples of databases in which the Data Source can be created.
.
64
UNIT-2: ELECTRONIC SPREADSHEET (ADVANCED)
SPREADSHEET
65
SESSION 1: ANALYZE DATA USING SCENARIOS AND GOAL SEEK
Consolidating data
Data Consolidation allows you to gather together your data from separate worksheets
into a master worksheet. In other words, the Data Consolidation function takes data
from a series of worksheets or workbooks and summaries it into a single worksheet that
you can update easily.
1) Open the worksheet that contains the cell ranges to be consolidated.
2) Choose the Consolidate option under the Data menu as shown in Figure2.1. The
Consolidate dialog box is shown in Figure 2.2.
66
3) If the Source data range list contains named ranges, you can select a source cell
range to consolidate with other areas.
If the source range is not named, click in the field to the right and either type a
reference for the first source data range or use the mouse to select the range on the
sheet. (You may need to move the Consolidate dialog to reach the required cells.)
4) Click Add. The selected range now appears on the Consolidation ranges list.
5) Select additional ranges and click Add after each selection.
6) Specify where you want to display the result by selecting a target range from the
Copy results to box.
If the target range is not named, click in the field next to Copy results to and enter
the reference of the target range or select the range using the mouse or position the
cursor in the top left cell of the target range.
7) Select a function from the Function list. The function specifies how the values of
the consolidation ranges are linked. The Sum function is the default setting.
Most of the available functions are statistical (such as AVERAGE, MIN, MAX,
STDEV), and the tool is most useful when you are working with the same data over
and over.
8) Optionally click More in the Consolidate dialog to display additional settings.
• Select Link to source data to insert the formulas. This generates the results in the
target range instead of the actual results. If you link the data, any values modified in
the source range are automatically updated in the target range. The corresponding
cell references in the target range are inserted in consecutive rows, which are
automatically ordered and then hidden from view. Only the final result, based on the
selected function, is displayed.
• Under Consolidate by setting, select either Row labels or Column labels, if the cells
of the source data range are not to be consolidated corresponding to the identical
position of the cell in the range, but instead according to a matching row label or
column label. To consolidate by row labels or column labels, the label must be
contained in the selected source ranges. The text in the labels must be identical, so
that rows or columns can be accurately matched. If the row or column label does not
match any that exist in the target range, it will be appended as a new row or column.
9) Click OK to consolidate the ranges.
10) If you are continually working with the same range, then you probably want to use
Data > Define Range to give it a name. Define Range option is available under the
Data Menu.
67
The data from the consolidation ranges and target range are saved when you save
the worksheet. If you later open a worksheet in which consolidation has been
defined, this data will again be available.
Creating Subtotals
SUBTOTAL is a function listed under the Mathematical category when you use the
Function Wizard (Insert > Function). Because of its usefulness, the function has a
graphical interface. It is accessible from Data menu as shown in Figure2.3.
68
want to subtotal.
5) In the Use function box, select the function that you want to use to calculate the
subtotals.
6) Click OK.
69
Using “What If” Scenarios
Scenarios are a tool to test “what-if” questions. Each scenario is named, and can be
edited and formatted separately. When you print the spreadsheet, only the content of the
currently active scenario is printed.
A scenario is essentially a saved set of cell values for your calculations. You can easily
switch between these sets using the Navigator or a drop-down list which can be shown
beside the changing cells. For example, if you wanted to calculate the effect of different
interest rates on an investment, you could add a scenario for each interest rate, and
quickly view the results. Formulas that rely on the values changed by your scenario are
updated when the scenario is opened. If all your sources of income used scenarios, you
could efficiently build a complex model of your possible income.
Creating Scenarios
Use Scenarios option under Tools menu to enter variable contents—scenarios—in the
same cell. To create a scenario:
1) Select the cells that contain the values that will change between scenarios. To select
multiple cells, hold down the Ctrl key as you click each cell.
2) Choose Tools > Scenarios.
3) On the Create Scenario dialog (Figure 2.6), enter a name for the new scenario. It‘s
best to use a name that clearly identifies the scenario, not the default name as
shown in the illustration. This name is displayed in the Navigator and on the title
bar of the scenario on the sheet itself.
70
4) Optionally add some information to the Comment box. The example shows the
default comment. This information is displayed in the Navigator when you click the
Scenarios icon and select the desired scenario.
5) Optionally select or deselect the options in the Settings section. See below for more
information about these options.
6) Click OK to close the dialog. The new scenario is automatically activated.
You can create several scenarios for any given range of cells.
To take a simple example, imagine that the Chief Financial Officer of a company is
developing sales projections for each quarter of the forthcoming year. She knows what
the company’s total income must be for the year to satisfy stockholders. She also has a
good idea of the company’s income in the first three quarters, because of the contracts
that are already signed. For the fourth quarter, however, no definite income is available.
So how much must the company earn in Q4 to reach its goal? The CFO can enter the
projected earnings for each of the other three quarters along with a formula that totals all
four quarters. Then she runs a goal seek on the empty cell for Q4 sales, and receives her
answer.
Other uses of goal seek may be more complicated, but the method remains the same.
Only one argument can be altered in a single goal seek.
71
use the reference to the cell with the corresponding value. In our example, this would be
=B1*B2*B3.
1. Place the cursor in the formula cell (B4), and choose Tools > Goal Seek.
2. On the Goal Seek dialog, the correct cell is already entered in the Formula cell field.
3. Place the cursor in the Variable cell field. In the sheet, click in the cell that
contains the value to be changed, in this example it is B1.
4. Enter the desired result of the formula in the Target value field. In this example,
the value is 15000. The figure below shows the cells and fields.
5. Click OK. A dialog appears informing you that the Goal Seek was successful. Click
Yes to enter the result in the cell with the variable value. The result is shown below.
72
specifically designed to minimize or maximize the result according to a set of rules that
you define.
Each of these rules sets up whether an argument in the formula should be greater than,
lesser than, or equal to the value you enter. If you want the argument to remain
unchanged, you enter a rule that the cell that contains it should be equal to its current
entry. For arguments that you would like to change, you need to add two rules to define
a range of possible values: the limiting conditions. For example, you can set the
constraint that one of the variables or cells must not be bigger than another variable, or
not bigger than a given value. You can also define the constraint that one or more
variables must be integers (values without decimals), or binary values (where only 0 and
1 are allowed).
Once you have finished setting up the rules, you can adjust the argument and the results
by clicking the Solve button.
Solver example
Let's say you have $10,000 that you want to invest in two mutual funds for one year.
Fund X is a low risk fund with 8% interest rate and Fund Y is a higher risk fund with
12% interest rate. How much money should be invested in each fund to earn a total
interest of
$1000?
74
Figure2.9: Example setup for solver
4. Choose Tools -> Solver. The solver dialog opens as shown in Figure 2.10.
5. Click in the Target cell field. In the sheet, click in the cell that contains the target
value. In this example it is cell B4 containing total interest value.
6. Select Value of and enter 1000 in the field next to it. In this example, the target cell
value is 1000 because your target is a total interest earned of $1000. Select
Maximum or Minimum if the target cell value needs to be one of those extremes.
7. Click in the By changing cells field and click on cell C2 in the sheet. In this
example, you need to find the amount invested in Fund X (cell C2).
8. Enter limiting conditions for the variables by selecting the Cell reference, Operator
75
and Value fields. In this example, the amount invested in Fund X (cell C2) should
not be greater than the total amount available (cell C4) and should not be less than
0.
9. Click OK. A dialog appears informing you that the Solving successfully finished.
Click Keep Result to enter the result in the cell with the variable value. The result is
shown below.
ACTIVITY/ QUESTIONS:
1. A student is planning her goals about the marks she should attain in the forthcoming
Semester 4 examinations in order to achieve a distinction (75%). Assuming that
examination of each subject is for 100 marks, her marks of the previous semesters
are given as under.
Subject 1 Subject 2 Subjec3 Subject 4
Semester 1 82 67 53 87
Semester 2 88 78 76 69
Semester 3 89 85 91 67
Find out how many marks should she obtain in 4th semester to secure distinction.
2. A business owner wants to decide if he should try to increase the sales a product or
price of an existing product in order to increase the profit by 10%.
Current Sales 82
Cost per Unit 75
Profit per unit 12
76
The owner believes that he can either increase sales by 5 units without incurring
additional costs while the price can be increased by Rs 8 without affecting the sales.
Using the scenario manager, find the effect of in the new profit in case of the following
situations.
a. Sales = 70 and cost = 80
b. Sales = 90 and cost = 72
c. Sales = 85 and cost = 80
d. Sales = 65 and cost = 80
Relevant Knowledge
Spreadsheet also allows you to link the cells from various worksheets and from various
other spreadsheets to summarize data from several sources. In this manner, you can
create formulas that span different sources and make calculations using a combination
of local and linked information. Multiple sheets help keep information organized
77
Figure 2.12 Identifying Sheets
78
Figure2.14 Insert Sheet dialog
We need 6 sheets, one for each of the 5 accounts and one as a summary sheet so we will
add 3 more. We also want to name each of these sheets for the account they represent:
Summary, Checking Account, Savings Account, Credit Card 1, Credit Card 2, and Car
Loan.
We have two choices: insert 3 new sheets and rename all 6 sheets afterwards; or rename
the existing sheets, then insert the three new sheets 1 at a time, renaming each new sheet
during the insert step.
To insert sheets and rename afterwards:
1. In the Insert Sheet dialog, choose the position for the new sheets (in this example, we
use After current sheet).
2. Choose New sheet and 3 as the No. of sheets. (Three sheets are already provided by
default.) Because you are inserting more than one sheet, the Name box is not
available.
3. Click OK to insert the sheets.
4. For the next steps, go to “Renaming sheets”
below. To insert sheets and name them at the same
time:
79
1. Rename the existing sheets Summary, Checking Account, and Savings Account, as
described in “Renaming sheets” below.
2. In the Insert Sheet dialog, choose the position for the first new sheet.
3. Choose New sheet and 1 as the No. of sheets. The Name box is now available.
4. In the Name box, type a name for this new sheet, for example Credit Card 1.
5. Click OK to insert the sheet.
6. Repeat steps 1–4 for each new sheet, giving them the names Credit Card 2 and Car
Loan.
On the Insert Sheet dialog, you can also add a sheet from a different spreadsheet file (for
example, another Calc or Excel spreadsheet), by choosing the From file option.
Click Browse and select the file; a list of the available sheets appears in the box. Select
the sheet to import. If, after you select the file, no sheets appear you probably selected
an invalid file type (not a spreadsheet, for example).
Note: For a shortcut to inserting a sheet from another file, choose Insert > Sheet from
file from the menu bar. The Insert Sheet dialog opens with the From file option
preselected, and then the Insert dialog opens on top of it.
Renaming Worksheets
At the bottom of each worksheet window is a small tab that indicates the name of the
worksheets in the workbook. These names (Sheet1, Sheet2, Sheet3, and so on) are not
very descriptive; you might want to rename your worksheets to reflect what they
contain. For instance, if your workbook contains Students Marks in individual Subject
then you may want to rename the worksheets as Subject names such as English,
Mathematics and Social Science etc.
There are three ways you can rename a worksheet, and the only difference between
them is the way in which you start the renaming process. You can do any of the
following:
80
• Double-click on one of the existing worksheet names.
• Right-click on an existing worksheet name, then choose Rename from the resulting
Context menu.
• Select the worksheet you want to rename (click on the worksheet tab) and then select
the Sheet option from the Format menu. This displays a submenu from which you
should select the Rename option.
In one or several formulas, you can use a cell reference to refer to:
• Data from one or more contiguous cells on the worksheet.
• Data contained in different areas of a worksheet.
• Data on other worksheets in the same workbook.
To make the cell reference in cell B3, select the cell and follow these steps.
81
1. Click on the = icon next to the formula bar. The icons change and an equals sign
appears in the formula bars shown below.
2. Now, click on the sheet tab for the sheet containing the cell to be referenced. In this
case, that is the Checking Account sheet as shown below.
3. Click on cell F3 (where the balance is) in the Checking Account sheet. The phrase
‘Checking Account’.F3 should appear in the formula bar as shown below.
82
Figure 2.18. Finished checking account reference
83
Referencing Other Worksheets
Calc can link different files together. The process is the same as described for different
sheets in a single spreadsheet, but we add one more parameter to indicate which file the
sheet is in.
To create the reference with the mouse, both spreadsheets need to be open. Select the
cell in which the formula is going to be entered.
84
You will get a good feel for the format of the reference if you look closely at the
formula bar. Based on this line you can create the reference using the keyboard.
Typing the reference is simple once you know the format the reference takes. The
reference has three parts to it:
85
Figure 2.22 Hyperlink dialog showing details for Internet links
On the left hand side, select one of the four types of hyperlinks:
Internet: the hyperlink points to a web address, normally starting with http://
Mail & News: the hyperlink opens an email message that is pre-addressed to a
particular recipient.
Document: the hyperlink points to a place in either the current worksheet or another
existing worksheet.
New document: the hyperlink creates a new worksheet.
The top right part of the dialog changes according to the choice made for the hyperlink
category from the left panel. A full description of all the choices, and their interactions,
is beyond the scope of this chapter. Here is a summary of the most common choices
used in presentations.
For an Internet hyperlink, choose the type of hyperlink (choose between Web, FTP or
Telnet), and enter the required web address (URL).
For a Mail and News hyperlink, specify whether it is a mail or news link, the receiver
address and for email, also the subject.
86
For a Document hyperlink, specify the worksheet path (the Open File button opens a
file browser); leave this blank if you want to link to a target in the same spreadsheet.
Optionally specify the target in the worksheet (for example a specific sheet). Click on
the Target icon to open the Navigator where you can select the target, or if you know
the name of the target, you can type it into the box.
For a New Document type hyperlink, specify whether to edit the newly created
worksheet immediately (Edit now) or just create it (Edit later) and enter the file name
and the type of worksheet to create (text, spreadsheet, etc.). The Select path button
opens a directory picker dialog.
The Further settings section in the bottom right part of the dialog is common to all the
hyperlink types, although some choices are more relevant to some types of links.
Set the value of Frame to determine how the hyperlink will open. This applies to
worksheets that open in a Web browser.
Form specifies if the link is to be presented as text or as a button. The figure below
shows a link formatted as a button.
Text specifies the text that will be visible to the user. If you do not enter anything here,
Calc will use the full URL or path as the link text. Note that if the link is relative and
you move the file, this text will not change, though the target will.
Name is applicable to HTML documents. It specifies text that will be added as a NAME
attribute in the HTML code behind the hyperlink.
87
Linking To External Data
You can insert tables from HTML documents, and data located within named ranges
from an OpenOffice.org Calc or Microsoft Excel spreadsheet, into a Calc spreadsheet
You can do this in two ways: using the External Data dialog or using the Navigator.
1. Open the Calc worksheet where the external data is to be inserted. This is the target
worksheet.
2. Select the cell where the upper left-hand cell of the external data is to be inserted.
3. Choose Insert -> Link to External Data.
4. On the External Data dialog, type the URL of the source worksheet or click the [...]
button to open a file selection dialog. Press Enter to get Calc to load the list of available
tables.
5. In the Available tables/range list, select the named ranges or tables you want to insert.
You can also specify that the ranges or tables are updated every (number of) seconds.
6. Click OK to close this dialog and insert the linked data.
88
Figure 2.24 Selecting a table or range in a source document from the Web
89
Linking To Registered Data Sources
You can access a variety of databases and other data sources and link them into Calc
worksheets. First you need to register the data source with OpenOffice.org. (To register
means to tell OOo what type of data source it is and where the file is located.) The way
to do this depends on whether or not the data source is a database in *.odb format.
To register a data source that is in *.odb format:
3. Enter the location of the database file, or click Browse to open a file browser and
select the database file.
90
4. Type a name to use as the registered name for the database and click OK. The database
is added to the list of registered databases. The OK button is enabled only when both
fields are filled in.
ACTIVITY
Create a set of worksheets for storing records of marks of differnet classes and compare
all these on a separate worksheet
QUESTIONS:
a. At the bottom of each worksheet window is a small tab that indicates the
of the worksheets in the workbook.
b. A refers to a cell or a range of cells on a worksheet and can be used to
find the values or data that you want formula to calculate.
Relevant Knowledge
In most office settings, there is a shared drive where teams can store common files for
everyone to use. This usually leads to sighting of the message: “The document [file
name] is locked for editing by another user. To open a read-only copy of this document,
click“!! This message appears because someone else already has the file open.
Sometimes however, it is necessary to have multiple people working on a file at the
same time. This can be to either speed up data entry or simply make things easier for
collaboration purposes.
91
Spreadsheet software allows the user to share the workbook and place it in the network
location where several users can access it simultaneously.
In this exercise, you will learn how to share a worksheet in OpenOffice Calc.
To enable sharing, select the box at the top of the dialog, and then click OK. A message
appears stating that you must save the worksheet to activate shared mode. Click Yes to
continue. The word (shared) is then shown on the title bar after the worksheet's title.
The Tools > Share Document command can be used to switch the mode for a worksheet
from unshared to shared. However, if you want to use a shared worksheet in unshared
92
mode, you need to save the shared worksheet using another name or path. This creates a
copy of the spreadsheet that is not shared.
93
Saving A Shared Spreadsheet
When you save a shared spreadsheet, one of several situations may occur:
● If the worksheet was not modified and saved by another user since you opened it, the
worksheet is saved.
● If the worksheet was modified and saved by another user since you opened it, one of
the following events will occur:
● If the changes do not conflict, the worksheet is saved, the dialog below appears, and
any cells modified by the other user are shown with a red border.
● If the changes conflict, the Resolve Conflicts dialog is shown. You must decide for
each conflict which version to keep, yours or the other person’s. When all conflicts
are resolved, the worksheet is saved. While you are resolving the conflicts, no other
user can save the shared worksheet.
94
● If another user is trying to save the shared worksheet and resolve conflicts, you see a
message that the shared spreadsheet file is locked due to a merge-in in progress. You
can choose to cancel the Save command for now, or retry saving later.
When you successfully save a shared spreadsheet, the worksheet shows the latest
version of all changes that got saved by all users.
Note: Most spreadsheets software automatically turns off some features in shared
workbooks. This is to simplify the workbook since multiple people can be working on
the file at the same time. For example, shared workbooks don‘t allow merging cells,
conditional formatting, or inserting pictures/graphs/etc.
Record Changes
Calc has the feature to track what data was changed, when the change was made, who
made the change and in which cell the change has occurred.
If you are the sponsor of a youth baseball team. The coach has submitted a budget to
you for the season and you need to edit the costs and return it to her. You are concerned
that if you just make the changes, then the coach won't see the changes you made. You
decide to use Calc with the record changes feature turned on, so that the coach can
easily see the changes you have made.
The figure below shows the budget spreadsheet your coach submitted.
95
Looking Over The Values,
You see a few places where money could be saved:
● Post-game snacks can be bought by parents.
● New uniforms can wait; only buy 10 to replace damaged ones.
● Buy cheaper baseballs.
● Only buy 2 spare gloves.
To make these changes, use the record changes feature in Calc. To start recording
changes:
1. Open the Budget Spreadsheet.
2. Select Edit > Changes > Record from the menu bar.
3. Begin editing the worksheet.
A colored border, with a dot in the upper left-hand corner, appears around a cell
where changes were made. Other reviewers then quickly know which cells were
edited. A deleted column or row is marked by a heavy colored bar.
96
Some changes, for example cell formatting, are not recorded and marked.
To change the color that indicates changes, select Tools > Options > OpenOffice.org
Calc > Changes.
Viewing Changes
Calc gives you tremendous control over what changes you see when reviewing a
worksheet. To change the available filters, select Edit > Changes > Show. The
following dialog opens.
97
● Show accepted changes – Only changes you accepted are displayed.
● Show rejected changes – Only changes you rejected are displayed.
You can also access the filter control in the Accept or Reject Changes dialog shown
below. Click the Filter tab to get a set of options similar to those shown in the figure
above.
Adding Comments to Changes
Calc automatically adds to any recorded change a comment describing what was
changed (for example, Cell B4 changed from ‘9’ to ‘4’). Reviewers and authors can add
their comments to explain their changes.
To add a comment to a change:
1. Make the change to the spreadsheet.
2. Select the cell with the change.
3. Choose Edit > Changes > Comments. The dialog shown below appears. The
automatically-added comment provided by Calc appears in the title bar of this dialog
and cannot be edited.
4. Type your own comment and click OK.
98
Figure 2.33 Comment added to cell B3
The comment also appears in the dialog when you are accepting and rejecting changes.
Editing change comments
1. Select the cell with the comment that you want to edit.
2. Select Edit > Changes > Comments.
3. Edit the comment and click OK.
99
The Comment column by default contains an explanation of the change that was made.
If the reviewer added a comment to the change, it is displayed, followed by the
description of the change.
If more than one person has reviewed the worksheet, one reviewer may have modified
another reviewer’s change. If so, the changes are hierarchically arranged with a plus
sign for opening up the hierarchy.
On the Filter tab of this dialog (not shown here), you can choose how to filter the list of
changes: by date, author, cell range, or comments containing specific terms. After
selecting the filter criteria, switch back to the List tab to see the results.
Merging Worksheets
Sometimes, multiple reviewers return edited versions of a worksheet at the same time.
In this case, it may be quicker to review all of these changes at once, rather than one
review at a time. For this purpose, Calc provides the feature of merging worksheets.
To merge worksheets, all of the edited worksheets need to have recorded changes in them.
1. Open the original worksheet.
2. Select Edit > Changes > Merge Document.
3. A file selection dialog opens. Select a file you want to merge and click OK.
4. After the worksheets merge, the Accept or Reject Changes dialog opens as shown
below, showing changes by more than one reviewer. If you want to merge more
worksheets, close the dialog and then repeat steps 2 and 3.
100
Now all of the changes are combined into one worksheet and you can accept or reject
the changes. Changes from different authors appear in different colors in the worksheet.
In this example, all of the changes from Robert are blue and the changes from Mia are
red.
Figure 2.36 Merged worksheets with different author colors
Comparing Documents
When sharing worksheets reviewers may forget to record the changes they make. This is
not a problem with Calc because Calc can find the changes by comparing worksheets.
In order to compare worksheets you need to have the original worksheet and the one
that is edited. To compare them:
1. Open the edited worksheet that you want to compare with the original worksheet.
2. Select Edit > Compare Document.
3. An open worksheet dialog appears. Select the original worksheet and click Insert.
Calc finds and marks the changes as follows:
● All data that occurs in the edited worksheet but not in the original is identified as
inserted.
● All data that is in your original worksheet but is not in the edited worksheet is
identified as deleted.
● All data that is changed, is marked as changed.
QUESTIONS:
1. What is the purpose of adding comments?
2. How can we add comments to the changes made?
3. State True/ False
101
a. Original author of the Worksheet can accept or reject changes made by other users.
4. Fill up the blanks
a. Spreadsheet software allows the user to share the workbook and place it in the
location where several users can access.
c. Spreadsheet software can find the changes by Sheets.
Relevant IKnowledge
A macro is a saved sequence of commands or keystrokes that are stored for later use.
An example of a simple macro is one that “types” your address. The OpenOffice.org
(OOo) macro language is very flexible, allowing automation of both simple and
complex tasks. Macros are especially useful to repeat a task the same way over and over
again.
3. Select cell A3, which contains the number 3, and copy the value to the clipboard.
4. Select the range A1:C3.
5. Use Tools > Macros > Record Macro to start the macro recorder. The Record
Macro dialog is displayed with a stop recording button.
102
Figure 2.38 Stop recording button.
6. Use Edit > Paste Special to open the Paste Special dialog.
7. Set the operation to Multiply and click OK. The cells are now multiplied by 3.
8. Click Stop Recording to stop the macro recorder. The OpenOffice.org Basic Macros
dialog opens.
103
9. Select the current worksheet. For this example, the current Calc worksheet is Untitled 1.
Existing worksheets show a library named Standard. This library is not created until the
worksheet is saved, or the library is needed, so at this point your new worksheet does
not contain a library. You can create a new library to contain the macro, but this is not
necessary.
10.Click New Module. If no libraries exist, then the Standard library is automatically
created and used. In the New Module dialog, type a name for the new module or leave
the name as Module1.
104
11.Click OK to create a module named Module1. Select the newly created Module1, enter
the macro name PasteMultiply and click Save.
12.The created macro is saved in Module1 of the Standard library in the Untitled 1 worksheet
105
Save the Calc document, close it, and open it again. Depending on your settings in Tools
> Options > OpenOffice.org > Security > Macro Security, Calc will display one of the
warnings shown below. You will need to click Enable Macros, or Calc will not allow
any macros to be run inside the document.
106
When a document is created and saved, it automatically contains a library named
Standard. The Standard library is automatically loaded when the document is opened.
No other library is automatically loaded.
Calc does not contain a function named NumberFive(), so it checks all opened and
visible macro libraries for the function. Libraries in OpenOffice.org Macros, My
Macros, and the Calc document are checked for an appropriately named function. The
NumberFive() function is stored in the AuthorsCalcMacros library, which is not
automatically loaded when the document is opened.
Use Tools > Macros > Organize Macros > OpenOffice.org Basic to open the
OpenOffice.org Basic Macros dialog shown further down the page. Expand
CalcTestMacros and find AuthorsCalcMacros. The icon for a loaded library is a
different color from the icon for a library that is not loaded.
Click the expansion symbol (usually a plus or a triangle) next to AuthorsCalcMacros to
load the library. The icon changes color to indicate that the library is now loaded.
Click Close to close the dialog.
Unfortunately, the cells containing =NumberFive() are in error. Calc does not
recalculate cells in error unless you edit them or somehow change them. The usual
solution is to store macros used as functions in the Standard library. If the macro is large
or if there are many macros, a stub with the desired name is stored in the Standard
library. The stub macro loads the library containing the implementation and then calls
the implementation.
1. Use Tools > Macros > Organize Macros > OpenOffice.org Basic to open the
OpenOffice.org Basic Macros dialog. Select the NumberFive macro and click Edit to
open the macro for editing.
107
2. Change the name of NumberFive to NumberFive_Implementation (see Listing 3).
Listing 3. Change the name of NumberFive to NumberFive_Implementation
Function NumberFive_Implementation()
NumberFive_Implementation() = 5
End Function
3. In the Basic IDE, hover the mouse cursor over the toolbar buttons to display the tool
tips. Click the Select Macro button to open the OpenOffice.org Basic Macros dialog.
4. Select the Standard library in the CalcTestMacros document and click New to create a
new module. Enter a meaningful name such as CalcFunctions and click OK. OOo
automatically creates a macro named Main and opens the module for editing.
5. Create a macro in the Standard library that calls the implementation function (see
Listing 4). The new macro loads the AuthorsCalcMacros library if it is not already
loaded, and then calls the implementation function.
Listing 4. Change the name of NumberFive to NumberFive_Implementation.
Function NumberFive()
If NOT BasicLibraries.isLibraryLoaded("AuthorsCalcMacros") Then
BasicLibraries.LoadLibrary("AuthorsCalcMacros")
End If
NumberFive = NumberFive_Implementation()
End Function
Save, close, and reopen the Calc document. This time, the NumberFive() function works.
108
The macro in Listing 5 demonstrates a couple of important techniques.
1. The argument x is optional. If the argument is not optional and it is called without an
argument, OOo prints a warning message every time the macro is called. If Calc calls
the function many times, then the error is displayed many times.
2. IsMissing checks that an argument was passed before the argument is used.
3. IsArray checks to see if the argument is a single value, or an array. For example,
=PositiveSum(7) or =PositiveSum(A4). In the first case, the number 7 is passed as an
argument, and in the second case, the value of cell A4 is passed to the function.
4. If a range is passed to the function, it is passed as a two-dimensional array of values; for
example, =PositiveSum(A2:B5). LBound and UBound are used to determine the array
bounds that are used. Although the lower bound is one, it is considered safer to use
LBound in case it changes in the future.
Note: The macro in Listing 5 is careful and checks to see if the argument is an array or a
single argument. The macro does not verify that each value is numeric. You may
be as careful as you desire. The more things you check, the more robust the macro
is, and the slower it runs.
109
Passing one argument is as easy as passing two: add another argument to the function
definition (see Listing 6). When calling a function with two arguments, separate the
arguments with a semicolon; for example, =TestMax(3; -4).
Listing 6. TestMax accepts two arguments and returns the larger of the two.
110
Listing 7. Add cell A2 in every sheet.
Sorting
Sorting data can be automated in Open Office by creating a Macro in Calc. Data can be
sorted on a single column or more than one column. Each time the Macro runs the data
gets sorted. Such macros can be written using code in Open Office.
Consider sorting the data in the figure below. First, sort on column B descending and
then column A ascending.
.
Figure 2.47 Sort column B descending and column A ascending.
The example in Listing 9, however, demonstrates how to sort on two columns.
111
Listing 9. Sort cells A1:C5 on Sheet 1.
Sub SortRange
Dim oSheet ' Calc sheet containing data to sort.
Dim oCellRange ' Data range to sort.
112
REM Setup the sort descriptor.
oSortDesc(0).Name = "SortFields"
oSortDesc(0).Value =
oSortFields()
.
Questions:
1. What are Macros?
2. How can we record a Macro?
3. Fill up the blank
a. Macros are useful to a task the same way over and over again.
113
UNIT-3 RELATIONAL DATABASE MANAGEMENT SYSTEMS (BASIC)
114
SESSION 1: APPRECIATE CONCEPT OF DATABASE
MANAGEMENT SYSTEM
Relevant Knowledge
A database is an organized collection of data. You can visualize it as a container of
information.
The data is typically organized to model relevant aspects of reality (for example, the
availability of rooms in hotels), in a way that supports processes requiring this
information (for example, finding a hotel with facilities such as Laundry, GYM etc…).
Suppose if you own a stationary shop, you need to keep detailed records of the materials
available in your shop. You also need to store information about pricing, stock levels for
reordering, old stocks, etc. While in the manual system, you would maintain several
files with different bits of information; in the computerized system you would use
database programs such as Microsoft Access, OpenOffice.org Base, and MySQL, to
organize the data as per your business need.
The database concept has evolved since the 1960s 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).
In this lesson, you will learn database concepts and to work with a Database
Management System (DBMS).
115
Database Servers
Database servers are dedicated computers that hold the actual databases and run only the
DBMS and related software. Typically databases available on the database servers are
accessed through command line or graphic user interface tools referred to as Frontends;
database servers are referred to as Back-ends. Such type of data access is referred to as a
client-server model.
Advantages of Database
Sharing of Data
In a database, the users of the database can share the data among themselves. There are
various levels of authorisation to access the data, and consequently the data can only be
shared based with the authorized users.
Many remote users can also access the database simultaneously and share the data
between themselves.
Data Integrity
Data integrity means that the data is accurate and consistent in the database. Data
Integrity is very important as there are multiple databases in a DBMS. All of these
databases contain data that is visible to multiple users. So it is necessary to ensure that
the data is correct and consistent in all the databases and for all the users.
Data Security
Data Security is an important concept in a database. Only authorised users should be
allowed to access the database and their identity should be authenticated using a
username and password. Unauthorised users should not be allowed to access the
database under any circumstances as it violates the integrity constraints.
116
Privacy
The privacy rule in a database states that only the authorized users can access a database
according to its privacy constraints. To secure data levels are set in the database and a
user can only view the data which is allowed to be seen. For example - In social
networking sites, access constraints are different for different accounts a user may want
to access.
Data Consistency
Data consistency is ensured in a database because there is no data redundancy. Data
Consistency means there should be multiple mismatching copies of the same data. All
data appears consistently across the database and must be same for all the users viewing
the database. Moreover, any changes made to the database are immediately reflected to
all the users and there is no data inconsistency.
Features of Database
Let’s look at the example of your address book. What do you store in an address book?
You may have people’s name, address, phone number and maybe even their birthdays.
There is a common element here – people. In this example, each person is considered an
“ITEM”.
So, database will store information about that person. When you were recording
information in your address book, what did you ask the people? What is your address?
What is your phone number? etc. Each question that we ask about our ITEM is a
“field”. Now, say you make new friends and want to add their information to your
address book. You will ask questions, get the answers and create a new “record”. So, a
record is a set of information (made up of fields) stored in your database about one of
the items. A “value” is the actual text or numerical amount or date that you put in
while adding
117
information to your database. When you put all the information together in a grid (like
you do in a spreadsheet), a collection of similar records creates a table.
1. A database can have one or many tables. An address book example is a very simple
one, in real world there are many more details involved. A big company would have
in its database, one table for its products, one table for its suppliers, one table for its
customer details, one for orders received and maybe many others.
2. Each table in a database contains information about one type of item. So, a database
is a container that holds tables and other objects and manages how they can be used.
3. Another very important thing to remember is that when we put in information, we
may have people with the same name (there can be more than one Charu Arora) or
the same address (members of a family). But when creating a database an important
feature is record uniqueness in every table. it is important to be able to distinguish
between different items having duplicate values.
118
In this table, it will be extremely difficult to differentiate between student records as
they have names that are similar. To differentiate, you can add additional field - roll
number - that will be unique for each record (example below).
EXAMPLE OF RDBMS
You had used the example of an address book in the previous section. An address book
uses only one table. But look at a different situation. If you are a dealer selling a single
type of item and want to record details of your sales in the past month and also want the
details of the client who purchased the item ( name, address, phone, date purchased,
number of items bought etc), what would you do?.
You create a table Sales with all the details:
Do you see a problem here? Every time you sell an item to Sheela or Vaibhav or any
other customer (client) you need to store the details again. So, what is the solution?
Create one table for client details and another for sale details. Since each record has to
be unique, you can insert a ClientID field to uniquely identify each client in the client
table. In the Sales table, you would give a point of reference which “points” to a
particular record in the Client table.
119
In the example here, the field ClientID occurs once in the Client table, but since one
client can place many orders, it occurs a number of times in the Sales table. Since we
cannot have an order without a customer, we call Client the parent and Sales the child
table. Related tables like these share a common field. You store data about people once,
but refer to those people many times in the database.
When data is to be stored, maintained, and retrieved from multiple tables then special
database software are required known as Relational Database Management System.
In the RDBMS data can be integrated using keys. These are Primary Key, Composite
Primary Key, and Foreign Key.
This unique field is called the Primary Key (PK). A primary key is a unique value that
identifies a row in a table. In our example, ClientID is the primary key in the Client
table. Primary Keys are also indexed in the database, making it faster for the database to
search for a record. When primary key constraint is applied on one or more columns
then it is known as Composite Primary Key.
The referred field ClientID which occurs in the Sales table is called the Foreign key
(FK). Hence, the foreign key identifies a column or set of columns in one (referencing)
table that refers to a column or set of columns in another (referenced) table. The “one”
side of a relation is always the parent, and provides the PK attributes to be copied. The
“many” side of a relation is always the child, into which the FK attributes are copied.
Memorize it: one, parent, PK; many, child, FK.
120
Another point to remember is that the end users will/may never have direct access to the
database. They can only see what you permit them to and can select only from the
options you give them.
RDBMS
A relational database is a type of database. It uses a structure that allows us to identify
and access data in relation to another piece of data in the database. Often, data in a
relational database is organized into tables.
ACTIVITIES
1. Analyze database requirements for a retail shop. Record the business requirements and
document. (You can use this information for creating a database to suit this business
requirement)
2. Analyze database requirement for your school; visit different departments such as
library, student admission center, to gather requirements. Document the business
requirement. (You can use this information for creating a database to suit this
requirement
ASSESSMENT
121
3. How is data organized in a RDBMS?
122
4.State the relationship and difference between a primary and foreign key?
Relevant Knowledge
Data in a relational database management system (RDBMS) is organized in the form of
tables.
You will now quickly recap what you learnt in the last session and assimilate more
concepts.
RDBMS
A relational database is a collective set of multiple data sets organized by tables, records
and columns. Relational database establish a well-defined relationship between database
tables. Tables communicate and share information, which facilitates data searcheability,
organization and reporting. A Relational database use Structured Query Language
(SQL), which is a standard user application that provides an easy programming interface
for database interaction
DATABASE OBJECTS
Tables:
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.
123
row in a table represents a set of related data, and every row in the table has the same
structure.
There are a variety of DBMS/RDBMS available; in this exercise, you will learn about
OpenOffice Base an Open Source RDBMS.
FIGURE 1
124
FIGURE 2
You can create a new database by selecting the option Create a new database.
You can also open an existing database file that you have already created by selecting the
option Open an existing database file. Click Next.
Figure 3
125
Click Finish. The Save As dialog box appears as shown below.
Specify a name for the database in the File name: field and click Save. A window
similar to the one displayed below.
Click Finish. The Save As dialog box appears as shown below.
Figure 4
Specify a name for the database in the File name: field and click Save. A window
similar to the one displayed below.
Figure 5
126
Now that you have created a database, you can work with the database as outlined in the
next few sessions.
Figure 6
Use Wizard To Create Table:
A table can be created using the predefined steps and table structure(s) in Base.
The following are the steps to create a table:
127
Click on Tables > Use Wizard to Create Table , the window shown below will open
FIGURE 7
Click the Select Fields > Choose Category > Select the table (in the picture shown below
“Business” category and “Customer” table has been chosen) > Click on Next Button.
FIGURE 8
128
Select the fields as per the requirements and select on buttons to add the predefined
columns or select to remove the fields from the Selected Fields Box. After selecting
the fields click on Next Button.
FIGURE 9
Once the fields will be selected the window to set the data types will open, By default
all the fields will have Text[VARCHAR] data type which can be and other properties
with default values but all of them can be selected as per the requirement.
129
FIGURE 10
After setting the properties of the fields such as field name, type etc. The window to set
the primary will open. Base automatically adds the column to be set as Primary Key
which will help the user to enter the unique values and helps in creating the relationship
with the other table to extract the data from multiple tables.
After setting the Primary Key click on Next Button.
FIGURE 11
130
When the Primary Key will be set then window to rename the table will open. A user can
either go ahead with the same table name or can change it.
In the same window options to work with the table will be given as :
The option to insert the data immediately will be selected by default . Click on Finish to
insert the data in the table.
FIGURE 12
To insert the data the following window open:
FIGURE 13
131
Creating table using Design View
1. Click on Create Table in Design View… option available under Tasks and a Table
Design window appears as shown below.
Figure 14
Specify the field name and data type of the field to be created by selecting the
appropriate type available under Field type dropdown list.
Now create a table with the following fields displayed below:
Specify the field name and the data type for each field name. For example, the table
contains the Name field and the data type of the Name is TEXT [VARCHAR]. You can
specify the length of the field value.
132
Figure 15
Specify the table name. The default name is Table1. Click OK.
Figure 16
A dialog box appears, similar to the one displayed below.
Figure 17
133
Options to set Primary Key
You are asked to set a primary key for the table you just created. You can select the
appropriate option to set the primary key or leave the table without a primary key.
If you click Yes, the application will set the primary key for the first field created
automatically. If you click No, you should see a window similar to the one displayed
below.
Figure 18
Notice the table by the name SDetails created and visible under Tables section.
Data Types:
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. Data
types in OpenOffice base are broadly classified into five categories listed below.
• Numeric Types
• Alphanumeric Types
• Binary Types
• Date time
• Other Variable types
Numeric Types:
Numeric data types are used for describing numeric values for the field used in the table
of a database. Numeric data types in a database can be used for storing information such
134
as mobile number, roll number, door number, year of school admission, true or false
statements, statistical values, etc.
The different types of numeric data types available are listed here.
Alphanumeric Types:
Binary Types:
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. In general, files of any format
135
can be stored using the binary data type. The different types of binary data types
available are listed here.
DATE TIME:
Date time data types are used for describing date and time values for the field used in
the table of a database. Date time data types in a database can be used for storing
information such as date of birth, date of admission, date of product sale, etc.
The different types of date time data types available are listed here.
136
Table Data View Dialog Box
Figure 19
Start typing the records in the table with the data provided in the excel sheet and select
File > Save Current ecord to save data in the table.
ACTIVITIES
1. Create a database for a stationery shop.
Hint: Create fields for items, price, colour, vendor, etc.
2. Create a database for a school library.
Hint : Create fields for book title, cost, provider, availability, etc
3. Create a database for maintaining a song collection.
Hint : Create fields for fields such as artist, movie, year released, etc.
ASSESSMENT
Fill in the blanks:
1. A table is a set of data elements that is organized using a model of vertical
and horizontal .
2. A is a set of data values of a particular type, one for each row of the table.
3. A represents a single, data item in a table.
4. are used to identify which type of data we are going to store in the
database.
5. There are ways to create a table.
6. Field properties can be set in both the and .
137
4. List datatypes available in Alphanumeric Datatype?
5. Define the structure of a table.
6. Differentiate between Tuples and Attributes of a table.
7. Name different Binary data types.
Relevant Knowledge
In Base, data is stored in tables which can be inserted, modified and removed using
appropriate options.
You will now quickly recap what you learnt in the last session and assimilate more
concepts.
FIGURE 20
The table will open in Datasheet View in which data new data can be inserted and
existing data can be updated or removed.
138
FIGURE 21
FIGURE 22
Deleting Records From The Table
139
FIGURE 23
Field Properties
To change the field properties table structure in design view has to be changed. To
set the field properties, steps will be followed as:
Select the table > Right click > Select the option Edit > the table Design View
window will open
FIGURE 24
140
In design view there are different properties of fields according to the data type set for
each field.
Figure 25
The properties of character type data is shown below in the figure.
Entry Required – if set to yes then it will be must to insert the value in the field which
means that field cannot be left blank.
Length – By default length of the field is 10 but the size of the field can be set to
maximum length.
141
Default Value – A default value can be set for a field if user don’t provide any value
while entering the values in the table.
Format example – This property helps to set the format of the data entered in the field
such as 91-222-333.
FIGURE 26
Sorting Data
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.
Figure 27 Figure 28
142
Referential Integrity
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.
You can create a relationship between any two tables by selecting Relationships…
option from the Tools menu.
Figure 29
143
Add the tables in amongst which you want to create the relationship. Select the tables
and click on Add button.
Figure 30
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
There are two ways to create the relationships between the tables:
a. Click on Insert option and select New Relation… option in Relation
Design window.
Figure 31
144
Select the options as required:
Figure 32
b. Drag the primary key column from one table and drop it on the key column of another
table.
Figure 33
145
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.
Example: In the given tables EMP and DEPT, EMP_ID in EMP table is the primary key.
Figure 34
Figure 35
146
Remove the Relationships
The relationships applied on the tables can be removed also with the help of Delete option.
Right Click on the relationship thread and select Delete option.
Figure 36
ACTIVITIES
ASSESSMENT
147
6. are the basic building blocks of a database.
7. There are types of Relationships in a table.
Relevant Knowledge
Having created the tables and entering data into them, now you want to extract some
information.
That’s when you query the database. As the name suggests, query is to collect specific
information from the pool of data. A query helps us join information from different
tables and filter that information. Filtering means that the query uses criteria you
provide to hide some data and present only what you want to see.
FIGURE 37
148
FIGURE 38
Click on Finish
FIGURE39
149
Creation Of Query Using Design View
Some RDBMS provide a graphical means to create queries, but most RDBMS do not do
so. That’s where you use SQL (pronounced as “sequel”) or Structured Query Language.
Query languages are computer languages used to make queries into databases and
information systems. Queries
are commands that are used to define the data structure and also to manipulate the data
in the database.
A SELECT statement retrieves zero or more rows from one or more database tables or
database views. In most applications, SELECT is the most commonly used Data
Manipulation Language(DML) command.
The SELECT statement has many optional clauses:
• WHERE specifies which rows to retrieve.
• ORDER BY specifies an order in which to return the rows.
In order to execute queries click on the Queries option available on the left side under
database section, click Create Query in SQL View as shown below.
Figure 40
A window appears similar to the one displayed below.
150
Figure 41
You can type the query in the above window and execute it by using the F5 function key
or by clicking the icon in the window.
For example, if you want to display all the data in the table that you created in the early
session, then the select statement will be:
Select * from SDetails;
After executing the select query the output will be shown similar to the one displayed
below.
Figure 42
Performing calculations
In Base, simple calculations can be done on the data using arithmetic operators.
Example:
To display the salary of all the employees after incrementing by 1000 then the
following SQL command will be executed in Base SQL Design
151
Select “EmployeeID”, “FirstName”, “Salary” +1000
from “Employee”
FIGURE 43
To display the salary of all the employees after decreasing by 10000 then the
following SQL command will be executed in Base SQL Design
Select “EmployeeID”, “FirstName”, “Salary” - 10000
from “Employee”
FIGURE 44
152
To display the salary of all the employees after incrementing it as twice the amount
of present salary, then the following SQL command will be executed in Base SQL
Design.
Select “EmployeeID”, “FirstName”, “Salary” * 2 from “Employee”
FIGURE 45
To display half of the salary amount paid to the employees, then the following SQL
command will be executed in Base SQL Design.
Select “EmployeeID”, “FirstName”, “Salary”/2 from “Employee”
FIGURE 46
153
Grouping of Data
To display the records containing the same type of values “WHERE” clause can be
used with the Select SQL Command.
To get details about the list of students whose favorite color is blue, you can use:
select * from SDetails where Color=’Blue’;
After executing the select query the output will be shown similar to the one displayed
below.
Figure 47
To view records in ascending order of RollNo, from the table the select statement will be:
select * from SDetails order by “Rollno” ASC;
Figure 48
You can add, modify or delete records using the Insert, Update and Delete commands.
154
To type and execute SQL commands, click on Tools > SQL. A window similar to the one
below will be displayed.
Figure 49
You can type the SQL Commands in the Command to execute space and click on
Execute.
UPDATE statement
Update statement is used for modifying records in a database. The general syntax of the
update statement is as follows:
UPDATE <table_name>
SET <column_name> = value [, column_name = value ...]
[WHERE <condition>];
To update a record using an update statement, type the following and click Execute.
Figure 50
155
Activities
1. Open the database created in the previous activity. Use the select query statement to
query and sort on subjects marks scored was greater than 50%.
2. Create a database for collecting and maintaining census data. Using queries display the
data of people living in a specific area.
Hint : Create fields for fields such as First Name, Last Name, DOB, Place of birth,
Employment Status, etc.
Assessment
156
In this session, you will learn to create a form.
Figure 51
Steps To Create Form Using Wizard
Click Use Wizard to Create Form… option under Tasks group. The Form Wizard dialog
box appears as shown below.
Figure 52
You can select selective fields to be sent onto the form by selecting the field name and
clicking >button. You can select individual fields in a database or all fields in a
157
database.
158
To use all the fields in the table in a form, click the >> button.
Notice the fields displayed under Fields in the forms section (Figure below).
Figure 53
Click Next >. You see the Set up a sub form step dialog box of the wizard as shown below.
Figure 54
You can select the option Add Subform if you need to insert the contents in the table in
a separate form. Click Next>.
Now you need to arrange selected fields in a form. You can use different styles from the
list displayed below:
159
Figure 55
Once you have selected a style, click Next >
A dialog box appears wherein you can select the data entry model.
Figure 56
Click Next >. You should see a dialog box wherein you can specify the styles to be used
in the form.
160
Figure 57
Click Next >. You see a dialog box where you can specify the name of the form. Click
Finish.
Figure 58
161
A form window appears. Notice that the records in the table are displayed automatically
within the form that you just created.
Figure 59
Options To Enter Data From Forms
You can add new records to the table using the form by clicking the symbol located
at the bottom as shown below.
Figure 41
Once you click the symbol, you will be displayed with a window for creating
records (Figure below).
162
Figure 60
You have learnt to create records using design view in the earlier sessions. You can add
records using the form as displayed below. Type the following data in the textbox
provided in the box as shown below:
163
To view the saved records, Double-click SDetails (Table name) under Tables section. A
window similar to the one below will be displayed; notice the record that you created
using a form is also displayed along with other records (Figure below).
Figure 61
Now enter three more records using the form and view them using the above mentioned
procedure.
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 can create reports in the database.
164
Figure 62
Now we can generate the report for the table created earlier.
Click on Use Wizard to Create Report… option available under Tasks.
Once you select the Use Wizard to Create Report… option.
You should see a window similar to one displayed below.
Figure 63
You have to select all the table fields by selecting the >> button, once you click the button
>> you should see a dialog box similar to the one displayed below.
165
Figure 64
Once you click Next>.you should see a dialog box similar to the one displayed below.
Figure 65
You can redefine the label of the fields in the reports or else you can set the default
name. Once you click Next >, you should see a dialog box similar to the one displayed
below.
166
Figure 66
You can define grouping for the fields of the table.
Once you click Next >, you should see a dialog box similar to the one displayed below.
Figure 67
You can sort the field variables in the report by selecting the appropriate field and sorting
method.
Once you click Next >, you should see a dialog box similar to the one displayed below.
167
Figure 68
You can select the layout of the report by selecting the appropriate option available
under the Layout of data down list and you can also select the orientation of the report.
Once you click Next >, you should see a dialog box similar to the one displayed below.
Figure 69
168
You can define a name for the report or you can use the name of the table itself for the
report also.
Click Finish.
Once you click Finish you should see a window similar to the one displayed below with
the report.
Figure 70
Now create a report containing only Name, RollNo and Phone details. Use different
layouts for the report design.
ACTIVITIES
1. Create a form for the academic database created in the above activity. Populate the
table with mark results using the form.
2. Create a report to display data from table stored in database created earlier. A report
must display your entire academic score card.
169
Fill in the blanks:
1. To create a form you need to select option available under Database section.
2. A is helps to collect specific information from the pool of data in the database.
3. is used to display the display the summary of data.
4. are the interfaces with which the user interacts.
5. Data from multiple tables can be stored in .
170
UNIT-4 WEB APPLICATIONS AND SECURITY
Relevant Knowledge
Computer Accessibility refers to the user friendliness of a computer system for all,
regardless of their disability. This is mainly a software issue. However, when a
combination of hardware and software, it enables a person with a disability or
impairment to use a computer. It is known as Assistive Technology. In this session, you
will learn about the basic accessibility options available on your computer.
There are numerous types of impairment that impact computer usage. These include:
171
• Cognitive impairments and learning disabilities, such as dyslexia, attention deficit
hyperactivity disorder (ADHD) or autism.
• Visual impairment such as low-vision, complete or partial blindness, and color
blindness.
• Hearing impairment including deafness.
• Motor or dexterity impairment such as paralysis, cerebral palsy, or carpal tunnel
syndrome and repetitive strain injury.
Accessibility Options in Control Panel are used to customize the way your keyboard,
display, or mouse function. Many of these features are useful for people with disabilities
as discussed earlier. In this session, you will learn to use accessibility options in
Windows XP.
Launching Accessibility Options
Keyboard Tab
Sticky Keys
StickyKeys is an accessibility feature to help
computer users with physical disabilities, but it is
also used by others as a means to reduce repetitive Figure: 1
strain.
StickyKeys allows the user to press and release a modifier key, such as Shift, Ctrl, Alt,
or the Windows key, and have it remain active until any other key is pressed.
172
After having enabled Sticky Keys, you W’II now practice and see its effect.
• Start Notepad. To do so, click Start > All Programs > Accessories > Notepad.
• Type some text (3 - 4 lines at least) and place the cursor at the beginning of the
text.
• Press CTRL key on your keyboard.
• Press letter A on your keyboard.
Notice the entire text gets selected. This action is equivalent to pressing CTRL+A
simultaneously!
To disable Sticky Keys, uncheck Use Sticky Keys and then click on Apply > OK.
Filter Keys
After having enabled FilterKeys, you will now practice and see its effect.
To disable FilterKeys, uncheck Use FilterKeys and then click on Apply > OK.
ToggleKeys
173
ToggleKeys is turned on, computer emits sound cues when the locking keys (Caps
Lock, Num Lock, or Scroll Lock) are pressed. A high sound is emitted when the keys
are switched on and a low sound is emitted when they are switched off.
To disable ToggleKeys, uncheck Use ToggleKeys and then click on Apply > OK.
Sound Tab
SoundSentry
Display Tab
High Contrast
To disable High Contrast, uncheck Use High Contrast > Apply > OK.
Cursor Options
Cursor Options is also an accessibility feature that assists people with vision impairment
by changing the blink rate and width of the cursor.
• To change the speed of the cursor blink, move the Blink Rate slider back and forth.
Notice the cursor blinking at various speeds.
175
• To change the width of the cursor, move the Width slider back and forth. Notice the
with of the cursor changing.
Mouse Tab
MouseKeys
MouseKeys is an accessibility feature that assists people who have difficulty using a
mouse. This option uses the keyboard (especially numeric keypad) as a pointing device
instead of a mouse. Select the Mouse Tab, a window to configure accessibility options
for mouse will be displayed(Figure 6).
• To enable MouseKeys, Check Use MouseKeys.
• Click Apply.
• Click OK.
Use number pad keys for moving mouse pointer instead of using mouse after enabling
“Use MouseKeys”. Use number key 4 to move left, 6 to move right, 2 to move down
and 8 to move up. To disable MouseKeys, uncheck Use MouseKeys and then click on
Apply
> OK.
General Tab
This tab enables you to configure accessibility options for all users.
Select the General Tab, a window to configure additional accessibility options will be
displayed (figure 8).
“Turn off accessibility features after idle for”,
“Give warning message when turning a feature on” and
176
“Make a sound when turning a feature on or off”.
Now check these features one by one and see what happens.
Serial Keys
Assessment
Relevant Knowledge
Networks in which all computers have an equal status are called peer to peer networks.
Generally in such a network each terminal has an equally competent CPU.
CLIENT-SERVER ARCHITECTURE:
Networks in which certain computers have special dedicated tasks, providing services to
other computers (in the network) are called client server networks. The computer(s)
which provide services are called servers and the ones that use these services are called
clients.
178
TYPES OF NETWORKS
There are two major types of network Local Area Network (LAN) and Wide Area
Network (WAN).
INTERNET
The Internet is a global system of interconnected computer networks that use the
standard Internet protocol suite to serve billions of users worldwide. It is a network of
networks that consists of millions of private, public, academic, business, and
government networks. Internet is one of the most useful technologies of modern times
which help us in our daily, personal and professional life. Internet is widely used by
students, educational institutes; scientist and professionals to gather information for
research and general information. Businesses use the Internet to access complex
databases such as financial database.
The Internet is the largest encyclopaedia for all age groups. The Internet helps in
maintaining contact with friends and relatives who live across different locations via
Internet chatting systems and email software. Internet is also becoming a major source
of entertainment for the general public.
World Wide Web (abbreviated as WWW or W3, commonly known as the Web), is a
system of interlinked hypertext documents accessed via the Internet. With a web
browser, one can view web pages that may contain text, images, videos, and other
multimedia, and navigate between them via hyperlinks.
179
Information is stored on web servers referred to as web pages are retrieved by using a
web browser such as Firefox on the local computer. A Web Browser is a software used
to view Web sites and acts as an interface between the user and the World Wide Web. A
Web server is a computer that stores web sites and their related files for viewing on the
Internet.
• Data Sharing: One of the most important uses of networking is to allow the sharing of
data.
• Files Transfer : Users can send text files, spread sheets, documents, presentations,
audio files, video files, etc. to other users.
• Hardware Sharing: Hardware components such as printers, scanners, etc. can also be
shared. For example, instead of purchasing 10 printers for each user, one printer can be
purchased and shared among multiple users thus saving cost.
• Internet Access Sharing: You can purchase a single Internet connection and share it
among other computers in a network instead of purchasing multiple Internet connection
for each computer. This is very commonly found in Internet café (browsing centres),
schools, colleges, companies, etc.
• Usage of network based applications: Such as web browsers, email clients, chat
application, audio & video calling, etc. is another advantage.
180
3G. Medium to large business users or customers with more demanding requirements
may use high speed connectivity such as DSL (High Speed), ISDN, etc.
MODEM
Á modem is a device that converts digital computer signals into a form (analog signals)
that can travel over phone lines. It also re-converts the analog signals back into digital
signals. The word modem is derived from its function MOdulator/DEModulator.
Dial-up: Dial-up Internet access is a form of Internet access that uses the facilities of
the public switched telephone network (PSTN) to establish a connection to an Internet
service provider
(ISP) via telephone lines using a device called MODEM. Users dial a particular number
provided by the ISP and gain access to the Internet.
Dial-up connections are extremely slow and in most cases, it is replaced by a high
speed connection such as DSL or Cable Modem.
DSL: Digital subscriber line(DSL) provide Internet access by transmitting digital data
over wires of a local telephone network. DSL service is delivered along with wired
telephone service on the same telephone line. On the customer premises, a DSL filter
removes the high frequency interference, enabling simultaneous use of the telephone
181
and
182
data transmission. For using a DSL connection, you need a DSL modem and a
subscription.
Cable Internet Access: Cable Internet Access is a form of broadband Internet access
that uses the cable television infrastructure. Cable Internet Access is provided through
existing cable TV networks; this is similar to DSL that is provided over existing
telephone lines.
3G: 3G, short for 3rd Generation is a set of standards used for mobile devices and
mobile telecommunication services and networks. High-Speed Downlink Packet Access
(HSDPA) is 3G mobile telephony communications protocol that allows higher data
transfer speeds and capacity.
If support for 3G is available on your mobile phone, you can subscribe to the 3G
connectivity with your ISP in order to get high speed Internet connection on your
phone.
183
one corner of the world, you get information from another distant area in a few seconds?
184
In very simple language, let’s see what happens to a piece of data, say a Web page,
when it is transferred over the Internet:
• Each packet is sent from computer to computer until it finds its destination. Each
computer on the way decides where next to send the packet. All packets may not
take the same route.
• At the destination, the packets are examined. If any packets are missing or damaged,
a message is sent asking for them to be re-sent. This continues until all packets have
been received intact.
• The packets are now reassembled into their original form. All this done in seconds!
To access the Internet, you need an active internet connection. You need to gather and
understand your requirement carefully before subscribing to an internet connection plan.
In this exercise, you will learn how to choose an Internet connection.
Some of the common questions that help you in your decision are:
• What is the purpose of getting this connection?
• Will you use the connection regularly?
• How much data will be downloaded on an average per month?
• How much speed do you need?
• What technology is available in your particular area?
• What are the different plans available from the ISP?
• Is there any limitation or catch for the selected plan?
To access Wi-Fi, you need an access point with an active Internet connection. Usually
when you subscribe to an Internet connection, the ISP provides options to purchase or
rent a Wi-Fi router that can act as both an internet connectivity device and an access
point
185
for Wi-Fi connectivity. Setting up a Wi-Fi network requires technical expertise;
however, you can access the Wi-Fi network by connecting to an access point that is
already setup for use. On computers that run Windows XP, you can view the list of
wireless networks available by using the following procedure:
• Right-Click on the Wireless Icon in the system tray and Click View Available
Wireless Networks (figure 10)
Windows XP will display the list of available Wi-Fi networks; you can choose any of
the connection from the list. Select by Double-clicking on the name displayed in the list.
Note: You may be prompted to enter a password if the selected network is secure. You
will receive a confirmation that you are connected to a wireless network. Now the
system is ready to be used for network related applications such as Firefox, Chrome,
186
Skype, etc.
187
Activities
1. List any 3 ISP’s available in your city. After collecting information such as
connectivity type, speed and charges, compare them and state which is the best ISP
and why?
2. Identify the type of network topology in your school lab
ASSESSMENT
Fill in the blanks:
1. The acronym for LAN is .
2. Three types of Wired Internet Connectivity are , &
.
3. Three types of Wireless Internet Connectivity are , &
.
II. Answer the following:
1. Define networking?
2. Give any three advantages of networking.
3. Explain the term packet with reference to data transfer.
4. Explain Wifi and its significance.
5. Compare LAN with WAN
6. Expand the following terms :
a. DSL e. LAN
b. ISP f. MAN
c. Modem g. WAN
d. www h. P2P
7. Explain P2P Architecture and how it is different from Client Server Architecture?.
Relevant Knowledge
Instant messaging (IM) is a form of communication over the Internet that offers an
instantaneous transmission of text-based messages from sender to receiver. Most instant
messaging software include the option for performing file transfers, audio chat, video
calling and conferencing, sharing desktops, etc. apart from standard text chat. Instant
messaging software is widely used for personal and commercial use. In this session, you
will be introduced to the concept of instant messaging, the steps to create an instant
messaging account and also work with instant messaging software.
188
Unlike email, instant messaging happens in real-time and the response from participants
can be spontaneous. Some instant messaging software allows users to view messages
received when they are not logged on. These are called “Offline Messages”.
For utilizing audio and video chat or conferencing, you need to have microphones and
headsets or speakers and web cameras so that users can talk or see each other.
189
• Meebo
• Yahoo! Messenger for the Web
• MSN Web Messenger
• IMO, etc.
[ Creating An Instant Messaging Account
In this exercise, you will learn to create an instant messaging account for using Google
Talk.
Google Talk is an instant messaging service that provides both text and voice
communication developed by Google Inc. Google Talk can also be used for making
video calls and to view updates from GMAIL mailbox.
Google Talk is free and is available as application based (users need to download and
install Google Talk application to their desktops, mobiles or laptops) and web based
(users can use
Google Talk through a browser after signing into their Gmail account).
Before you start using Google Talk, a Gmail account is required. You have learned how
to create a Gmail account earlier. In this exercise, you will learn how to use Google
Talk.
Note: You need to download and install Google Talk application from
www.google.com/talk prior to this exercise.
LAUNCHING GOOGLE TALK
• To launch Google Talk, Click Start >
Programs >Google Talk>Google Talk.
190
Signing In into your Google Talk Account
ACTIVITIES :
Create an instant messaging account on any of the application that support instant
messaging of your choice.
ASSESSMENT
Relevant Knowledge
In this session, you will learn to chat with a contact that is already added to your contact
list.
• Whenever your friend in the contact list is online you can see the person along with a
green dot as in the figure 14:
191
• You can start sending text chat message instantly by double-clicking on a contact. A
window will pop up as displayed in the figure below. You can type the text in the text
box and press enter; the other person will see the text message and respond to your
message.
•Go ahead and get the contacts of a couple of your classmates and chat with them.
There are some general rules and etiquettes to be followed while chatting. They are
almost the same as those that apply for emails.
• Always ask if the other person has time to chat first - regardless of how important you
think what you have to say is, it’s not going to be well received if the recipient is busy.
• Typing your messages in uppercase is extremely rude - it’s considered shouting and
very aggressive.
192
• Give people time to respond - Multiple questions sent to a recipient before they’ve had a
chance to answer can seem more like an interrogation rather than a conversation.
• Wherever possible, give the person you are communicating with your undivided
attention. It’s not just a sign of respect, but if you have multiple conversations
happening or are allowing other issues to distract you, you may miss an important point
in the other person’s messages or lose the gist of the conversation.
• It’s important to properly end an IM conversation - you may think the chat is over, but
the other person may not. While you’re off doing other things, they may be sitting there
staring at the screen waiting for further communication from you!!
CHATTING ON GMAIL
In this exercise, you will learn to chat with a contact using the Gmail account through a
web browser.
You can also use the chatting services after signing into their Gmail Account. The same
procedure will be followed while making voice chats, text chats etc. using the Gmail
Account.
Once you sign into your Gmail account, a contact window will be displayed either on
the left side or the right side within the browser as displayed below.
If you would like to chat with a contact, double click on the contact’s name. You will
see a pop-up similar to the one displayed below.
193
Now you can start typing the message you want to send and the other contact should be
able to respond to your chat message.
CHATTING ON YAHOO
Having learnt to use one IM software, you will experiment with another. In this
exercise, you will create an instant messaging account for using Yahoo! Messenger.
Note: You may need to download and install Yahoo! Messenger application from
http://in.messenger.yahoo.com/download/ prior to this exercise.
Before you start using Yahoo! Messenger, a Yahoo Mail account is required. If you
don’t have a Yahoo! Mail Account already you can use the built in option for creating a
new Yahoo! Mail Account.
You should a list of contacts that are available for chat. If you don’t have any contacts,
you can add their Yahoo Mail account to your contact list by sending an invite.
Note: If you would like to import your contacts from other sources such as Microsoft
Outlook, Gmail, Hotmail, etc., you can use the import option.
Having used Yahoo! Messenger, now go ahead and chat with your classmates using a
Yahoo mail account through a web browser.
You can also try using other chat services such as MSN, Rediff, Sify, etc. Refer to
respective websites for further instructions to download and using the software.
194
ACTIVITIES
1. Add more contacts to your contact list and chat with multiple contacts.
2. Download, install and use Windows Live Messenger, Rediff, Sify messengers. Create
respective accounts to practice.
ASSESSMENT
Relevant Knowledge
A blog is a discussion style site used by non-technical (or technical users) users for
creating personal web pages. Blogs are similar to an online personal diary and simple to
use.
You can use a blog to convey messages about events, announcements, news, reviews,
etc. Blogs are usually managed using a web browser and this requires active internet
connection. You can also use offline blog software to create content first and later
publish the content when an active internet connection is available.
There are hundreds of websites that offer blog service for free. Some of the popular
blogs include:
• www.WordPress.com
• www.blogger.com
• www.blog.com
• www.weebly.com
• www.blogsome.com
195
CREATING A BLOG ACCOUNT
In this session, you will learn how to create a blog account in WordPress.
WordPress is free web service that you can use to create a beautiful website or blog.
WordPress has support for “themes” for customizing the design of a blog. Themes can
make the blog or the webpage look attractive.
• Before you start using a blog, a blog account is required. To create one, you need a
web browser and an internet connection.
• Open the Web Browser.
• On the address bar type https://signup.WordPress.com/signup/. You should now
get to a page with the fields Blog address, Username, Password, Email Address
and Language.
• Blog Address: You must provide a unique address to your WordPress Blog. This is
the address which others will use to view your blog.
• Username: You should choose a username for managing this blog.
• Password: Securing your WordPress blog account with a strong password is
important. A combination of uppercase and lowercase letters with some digits
along with symbols would be a strong enough password. You need to enter the
password twice.
• Email Address: You must provide your Email Address here. An activation link will
be send to you from WordPress after you click “Create Blog”.
• Language: You can choose your own language for blogging from the list given.
• Click Create Blog.
On doing so, you will be sent an email for activating your blog account. Open your
email and click on the activation link. Once you click Activate Blog, you will be
redirected to your WordPress Blog Account and you should see a web page similar
to the one displayed below.
196
Now the blog is ready for use. You will be presented with the address of your blog as
displayed in the web page above; you can either double click on the link or type the
address manually in the web browser. Either action takes you to the homepage of your
blog.
Once you have created a blog, you need to submit content that you want others to view.
This process ids called posting content.
• To create a post, click New Post. A Window similar to the one displayed below
appears.
• Title: You must provide a title for your post; choose a tile that this post will focus
on. For example, “School Annual Day Function 2012”.
Using the rich text box, you can type content that you want others to read.
- Once you have finished typing the content, you need to publish the post for others to
see.
- Click Publish Post to publish your content. To view the post, you can type the blog
address in the address bar of the web browser, you should see your blog along with
the post (displayed below).
197
You can also add photos, videos, etc. to the blog using the options available in WordPress.
You can comment on posts published by others. Usually, the comment option is
available towards the end of the post. Look for options such as Leave a comment, Leave
a reply, etc. in the blog to comment. For example, in WordPress the comment box is
located below the post and labelled as Leave a reply.
• In the Enter your comment here… text box, type your comments about the post.
• In the Email (required) field, type your email address.
• In the Name (required) field, type your name.
• In the Website filed, you may type your blog address (Optional).
• Once you have typed the content in the comment area, review carefully and Click
Post Comment.
Once you click the Post Comment, you will see the blog along with your comment.
(displayed below)
ACTIVITY
Create a blog of yours using wowrdpress/ blogspot/wix or any other blog service provider.
198
ASSESSMENT
Relevant Knowledge
If you do not have an active internet connection, you can create blogs using a blog
application and publish the blog whenever internet connectivity is available.
There are several free offline blog editors available that can be downloaded and
installed on the local computer such as:
• Qumana
• Windows Live Writer
• Blogdesk
In this exercise, you will learn to use an offline blog editor Qumana. Qumana is a free
blog application that is simple and easy to use. In this exercise, you will learn about
using
Qumana
Note: You need to download and Install Qumana. Qumana can be downloaded from
www.qumana.com. Once installed, you can use the program to manage blogs.
Launching Qumana
• To launch Qumana, Click Start > Programs > Qumana > Qumana.
• You can also Double-click on the Qumana icon on the desktop if available.
199
You need an existing blog account to use with Qumana. In this exercise, you will learn
to use your existing WordPress account with Qumana. Enter your WordPress blog
address and Click Next.
• A login window appears. You need to provide details of your WordPress account.
However, if you wish to use it for other blog services, you need to enter appropriate
details. Give the WordPress blog address in the Web address field. Enter the
Username and password of the WordPress account.
• Click Next > Finish.
A window similar to the one below appears.
If posts are already available in your blog, Qumana will download and display the
existing blogs as well.
To create a post,
• Click New Post.
• A window similar to the one below will be displayed (figure below).
200
Note: Enter the title for the post in the Title field and the post content in the area given
below the page title.
Once you click Publish Post, the post will get automatically updated to your WordPress
blog.
To view the published content, open the web browser and type your blog address. You
can include photos or pictures in your blog to make it attractive. To insert a picture,
• Click on the image icon on the right hand side of the application.
• Once you click the image icon, the following window will be displayed.
• Click Browse to locate the image that you want to publish in the blog.
• Once you click “Browse”, the OS browse window appears, enabling you to locate
the image to be loaded. When you have chosen the image click Upload & Insert.
• Click Publish Post.
To view the published content along with the picture, open the web browser and type in
your blog address.
Now try using other blog applications such as Windows Live Writer, Blogdesk, etc. using
different blog accounts.
ACTIVITY
Download and use different offline blog editors
201
ASSESSMENT
Answer the following:
1. Explain the purpose of an offline blog editor.
2. List any five offline blog editors.
Relevant Knowledge
Online transactions have made transactions very convenient and simplified the
workflow in many forms in a business. Online transactions deals with transfer of money
over the internet. Revolution in the electronic media has made transaction handling easy
.
Many protocols and security measures have been adopted to ensure the safe and secure
OLTP ( Online Transaction process ). We are already using online transactions when we
deposit or withdraw money from an ATM machine, when we make our bill payments
using our debit/ credit cards. NEFT/ RTGS are some other examples of online funds
transfer. Numerous benefits of online transactions like, fast transaction speed,
convenience, low risk of theft etc has exponentially increased its use among people.
Online shopping is a form of electronic commerce where customers can buy or sell
goods over the Internet. Customers need to have an active internet connection for
viewing goods or services offered by a seller; customers can pay online using a credit,
debit card or by internet banking.
202
To perform an online transaction, all you need is a web browser and an active internet
connection.
In some cases where purchasing is involved, you will need a valid credit card, debit card
or online banking support referred to as Net Banking Subscription. Some websites even
allow COD (Cash on delivery) where the users can pay once they receive the product or
service.
To work with Flipkart, you need to use a web browser and an active internet connection.
• Open any Browser such as Firefox, Chrome or Internet Explorer
• Type www.flipkart.com in the address bar and Press
Enter. A web page similar to the one below will be displayed.
• To perform transactions using Flipkart, you need to sign up for a Flipkart account.
• Locate and click on the Sign Up link at the top of the web page, a window similar to
the one below will be displayed for signing up with Flipkart.
203
• Email Address: You must provide your Email Address. The Email Address is also
used for sending offer mails, promotional mails to you. The Email Address will be
used as the login name for your Flipkart Account.
• Password: You must secure your Flipkart Account by giving a strong password. You
need to enter the password twice.
Once you have signed up successfully, a window similar to the one below will be
displayed.
Flipkart has a variety of products organized as categories. You can either look for
respective product in appropriate category or you can use the search feature to locate a
particular item. For example, if you would like to buy a digital camera, you can Digital
Camera in the search box and choose a model from the search results window. You can
select a model of your choice by clicking on the product image. You can browse the
catalog of products available in Flipkart; once you have decided to purchase a product,
you can use purchase the product by using the option Buy this now. You can select one
or more products before you proceed to payment. Products added to your shopping cart
will be available for review prior to payments.
204
Flipkart allows a variety of methods for online payment. You can use credit card, debit
card, Net Banking, Cash on Delivery or e-gift voucher to complete the payment; you
need to enter appropriate details as required in the mentioned fields and Click Pay to
initiate the payment.
Depending on the method select, additional windows may be displayed and procedures
will vary to complete the online transaction.
Some vendors (websites) also offer payment to be made in installments thus making it a
convenient option for the customers. Refer to the website payment terms for
information on payment procedures and practices.
IRCTC. Indian Railway Catering and Tourism Corporation (IRCTC) is an online portal
that can be used for booking travel tickets.
To work with IRCTC, you need to use a web browser and an active internet connection.
205
• Open any Browser such as Firefox, Chrome or Internet Explorer
• Type www.irctc.co.in in the address bar and Press Enter.
A web page similar to the one below will be displayed.
• To perform transactions using IRCTC, you need to sign up for an IRCTC account.
• Locate and Click Signup link at the top of the web page, a window similar to the one
below will be displayed for signing up with IRCTC.
• You will be redirected to a web page for signing up with IRCTC similar to the one
below.
Follow the onscreen procedures for filling up the details to complete the registration.
Once you logon to IRCTC, you can use the website for booking tickets. By now, you
are quite familiar with what each field represents. Go ahead and fill in the details. The
ones marked with an asterisk (*) are mandatory fields.
ACTIVITY
1. Open various government and private sites for registration of tickets or purchase of
any product and observe the information asked on such transaction sites.
2. Visit any online shopping site and observe the details of products published.
206
ASSESSMENT
1. Explain the purpose of Online transactions.
2. List any five websites that allow online transactions.
3. List any three payment tools to use online transactions.
4. Give any two benefits of online transactions.
Relevant Knowledge
Internet security is a branch of computer security specifically related to the Internet,
often involving browser security but also network security. Its objective is to establish
rules and measures to use against attacks over the Internet. The Internet represents an
insecure channel for exchanging information leading to a high risk of intrusion or fraud,
such as phishing. This session introduces you to Internet security concepts and how to
secure online and network transactions.
Though Internet provides valuable information and entertainment, it may leave your
computer unsecure due to many online threats. You need to ensure that your usernames,
passwords, credit card or online banking information secure as they are prone to be
tracked and used by unauthorized users. Some websites can also install Malware on the
computer without user consent thereby leaving the computer damaged or insecure.
Online threats such as Phishing, email spoofing, chat spoofing, etc. can increase the
chances of users getting compromised.
You can reduce the risks by using best practices such as using Antivirus Software,
Antispyware
Using strong passwords can lower the risk of a security breach; effectiveness of a
password depends on the security mechanism of the software and users involvement in
generating a strong password.
Most websites check for password effectiveness when a user attempts to register for the
first time or when they change password. For example, when you register with Gmail,
you may notice a password meter displaying the strength of your password similar to
the one displayed below.
208
You may also use websites such as www.strongpasswordgenerator.com that can
generate random strong passwords. To generate a strong password using
www.strongpasswordgenerator.com do the following:
• Click Generate strong password. Notice the password displayed under your new
password. Backup your data: Always keep copies of personal data in additional
media such as compact discs, pen drives, etc. This could be helpful in situation
when there is a loss of data. Keep the data away from unauthorized users.
Use encryption software: (Usually available within the operating system) to protect your
data from unauthorized users. If encryption software is not available within the
operating system, use a 3rd party software.
Keeping your username and password private: Never save your username or password
on computers that are used in shared environments such as internet café. Browsers may
save your personal data on the local computer that can be used by another user using the
same computer.
Registering with websites: Read the privacy statement or policy whenever you register
with a website, the statement or policy will include information about how the website
use personal data.
Do not share personal information: Websites require you to fill out forms containing
fields such as name, gender, age, email address, school, etc. Be cautious when filling
out such forms; research and verify if it’s a trustable website. Your email addressed
could be used by unauthorized users to send you fake or unwanted emails; think twice
or thrice before providing information to any website and decide if it is really necessary
.
Secure transactions: If you are using online shopping or transactions, websites even
store your credit card or online banking personal information such as your credit card
number, account details, etc. This information can be tracked and used by un-authorized
users often known as hackers to misuse this information. Again, ensure the website is
legitimate and uses secure practices for performing and maintaining online transactions.
Since information such as credit card details or personal information is sent over the
209
network, it is always recommended to use only secure websites for such transactions.
Verify if the website uses secure transaction; usually it is indicated through a digital
certificate represented as a golden lock in the web browser’s address bar.
Use antivirus and antispyware software: Computers are prone to attacks from software
known as Malware that could harm your computer. Malware track browsing behavior or
transmit personal data from your computer; programs such as keyloggers could be
installed on your computer track and transmit every key that is pressed on a keyboard
(keystrokes) to unauthorized users.
Antivirus and Antispyware programs also offer real-time protection monitoring your
computer for any changes by malware software. Keep your Antivirus and Antispyware
software always up to date, this can help in protecting your computer from recent
threats.
Do not immediately respond to mails from unknown users: It may be a fake mail trying
to gather personal information such as your bank account details, home address, etc.
Some mails could promise you jobs or announce lottery results which in turn could
compromise the user.
And in some cases, virus or scripts that are dangerous could be attached to the mail;
NEVER open the attachment from an unknown source.
Clear browser cookies frequently: Cookies are programs that are created on your local
computer when you visit websites. Though cookies are meant for storing data based on
your activity performed during your earlier visit such as logon details, details of a
shopping cart, visited pages in a website, etc. they could also be tracked by
unauthorized users and possibly gain access to your personal information.
Keep the operating system and software applications up to date, though operating
systems and applications are designed, tested and distributed, sometimes they may have
security holes through which a hacker can take advantage; they may track and gather
information or even damage the whole computer. In general, most vendors notify the
users whenever a security hole is identified and an update is available to address that
particular issue. You can also visit respective vendor’s website to check if there are any
updates available, download and keep your operating system and software applications
up to date, free from security holes.
210
Install firewalls: Firewalls could be software or hardware and can assist in keeping a
computer and a network secure. Firewalls analyze the network traffic and determine if
the traffic should be allowed or not. In most cases, operating systems such as Linux,
Windows or Mac include firewall software as a part of operating system thus keeping
the computer secure. In rare cases, you may need to configure your firewall for
additional security.
Never install software from unknown sources: As they might not be trustworthy;
download only from well-known or reputed websites. Verify the source if it is
legitimate by searching the internet or referring to comments from other users before
downloading them; understand the nature and the purpose of the software before
attempting to download and install them.
Remove unwanted or unknown software applications: These might have got installed
without your knowledge when you have visited some websites. Unwanted software
could get installed as they might have been bundled along with necessary software.
Some programs such as toolbars get installed usually through bundled software and are
programmed to send personal data without your consent.
Web browsers have built-in password management designed to store passwords used in
forms on websites. Browsers often prompt to save usernames and passwords when users
attempt to logon to websites.
This facility is offered to users, so that they can logon to their frequently used websites
without having to type the usernames or passwords. However it is not advisable to leave
the web browser store this data particularly on public or shared computers.
To clear personal data from a web browser such as Mozilla Firefox, launch the browser.
211
Notice that under Passwords section, Remember password for sites is checked. This
means the browser is configured to save passwords for websites automatically. You can
uncheck
Remember password for sites option, if you prefer NOT to store passwords.
Mozilla Firefox can also store data such as cookies, visited websites or webpages data,
browsing history, etc. To clear this stored data, click General tab > Option. The
following window will be displayed:
212
• Under History section, click the drop down menu next to Firefox will:.
• Select Use custom settings for history from the drop down list. The following window
will be displayed:
213
Notice the preferences; Firefox is configured to remember browsing and downloading
history search and form history and cookies. If you do not wish store the above
mentioned data, select
Never remember history from the drop down list. If you are in a public environment
such as a cyber café, you may select the option Clear all current history. On selecting
this option, the following window will be displayed:
• Click Clear Now and then click OK. From now on, Mozilla Firefox will not
remember any history as you have configured it that way.
• There are several online threats such as Phishing, email spoofing, chat spoofing, etc.
• You can reduce the risks by using best practices such as using Antivirus Software,
Antispyware
Software, Firewalls, strong passwords, etc. in addition to spreading awareness of the best
practices.
ACTIVITY
Open settings of different browsers like edge, Mozilla firefoz, opera etc and note down
the security settings in them
ASSESSMENT
214
4. Explain any five tips to manage strong passwords.
5. Explain any four best practices to secure data .
6. Explain use of Antivirus and Anti Spyware
Every organization must follow a standard set of safety rules and procedures. These
rules must be stated and displayed clearly at important areas . All the employees must
be given a demonstrations and training to follow safety rules .
Basic safety rules to follow at workplace – Fire safety, Falls and slips, Electrical safety,
Use of first aid.
Timely repairs should be carried out by a competent person/ organization at workplace /
home to avoid/minimize any hazards.
215
Electrical Safety Rules:
Though use of electric equipment has helped in all our routine tasks whether it is at
home or office but if precautions and safety measures are not taken daily then they
might be a cause of threat to our lives. We must take appropriate measures to ensure
safety from electrical devices at home as well as at workplace. Following are some of
the measures we should take to keep ourselves safe from electricity hazards and
accidents:-
Learning First Aid is the social and civic responsibility of very human being. If
provided effectively and on time then it may save life.
First Aid is the immediate assistance provided to the injured to save life and minimize
health loss till the proper medical aid/ facility is provided.
Every organization must have basic First Aid Kit. Kit must have all necessary items.
Make sure to check for the expiry of medical related items.
217
hazards are : Physical hazards, chemical hazards, biological hazards, , behavioural
hazards, radiological hazards, ergonomic hazards etc.
From past 2 years Ramdeen worked in a chemical factory where come types of Acids
are being manufactured. He is supposed to carry a sample of chemical in a special flask
with a tight cap. He went to take the sample from the dispenser and did not fixed the cap
properly. While carrying the chemical back he slipped and because the cap was not
fixed and the chemical spilled over his neck, lower half of his face and one hand. The
worker suffered from severe burns due to chemical burns.
A 43 year old gardener was electrocuted and lost control over his limbs while watering
the plants in a park where he worked. After investigating, it was found that insulation of
the electric wire from the night lamp was cracked and full 220 volt current was live on
the lamp pole. The park care taker had just watered the plants and the electric current
was live in water while he watered the plants
This meant the wire was not inspected regularly. Otherwise, the damaged insulated wire
should have been changed and replaced with a new safe to touch wire
A storekeeper was in a habit of throwing the plastic waste and packing waste in the
backdoor of his store. The housekeeping staff was in a habit of smoking cigarette during
their break time.
One week the pile of plastic and packing garbage was not cleaned. One of the
housekeeping staff just threw the discarded cigarette in that garbage heap of plastics and
packing material. As the day was hot and sunny, the garbage caught fire. By the time
the fire was noticed, fire flames engulfed the whole back area causing heavy damage to
the store and the backdoor area.
218
The fire could have been prevented if the storekeeper had taken appropriate garbage
disposal measures, restricting smoking in the premises.
ACTIVITY
ASSESSMENT
Relevant Knowledge
Accident: an accident is an unplanned event that may happen all of a sudden and may
lead to unwanted or unprecedented results/outcomes.
Or
Types of Accidents:
Accidents may be of following types :
- Accidents at workplace : Slips and fall accidents, fire
- Industrial disease/illness
- Road traffic accidents
- Clinical Accidents
- Sports related accidents
219
Workplace accidents may include injuries that are caused to the workers due to falls,
slips and trips
Slip and call accidents may occur at any working environment and the injuries may vary
from minor ache to major severe accident. Some injuries suffered might include
fracture, sprain, knee or elbow injury, wrist or head injuries etc.
Handling Accidents:
Accidents must be handled carefully. The accident should be handled compassionately
without assigning blame on others.
Emergency
An emergency situation might pose a sudden risk to life, property health etc. and needs
intervention to prevent deteriorating results/ hazards.
An emergency situation is one that:
● threatens the employees, customers or the public
● disrupts or shuts down the operations
● causes physical or environmental damage
An emergency must be handled immediately to prevent further losses and to minimize
the loss. One must be alert to notice any kind of emergency. There are various types of
emergencies that may occur at home. School or workplace. Hence it becomes essential
requirement to have an emergency plan to minimize the loss and recover from
emergency.
Types of Emergency :
Various types of emergencies are there and there should be an emergency management
plan to handle the situation of emergency. Some of the types of emergencies are as
follows :
220
- Chemical spills
- Extreme heat waves
- Droughts
- Pandemics
- Terrorist attack
- Fire
- Floods
- Thunderstorms
- Leakage of some hazardous gas/ chemical
Generally the situation of emergency occurs as a result of some disaster. Disaster may be
either natural or caused by some human activity.
Some of the types of emergencies that require evacuation are:
● Fire
● Explosion
● Floods
● Earthquake
● Hurricane
● Tornado
● Toxic material release
● Civil disturbance
● Workplace violence
ACTIVITIES
Identify some precautions that may be taken at various places to avoid accidents.
ASSESSMENT
221
SESSION 11: PROTECT HEALTH AND SAFETY AT WORK
An organization can face some health hazards that could put the lives of the employees
in danger. A hazard is anything that is the source of any potential harm, damage or any
kind of potential loss of health or life.
Hazards can be of different types depending on the industry and the environment in
which the employees work. The different types of hazards include:
● Physical
● Chemical
● Biological
● Mechanical
Sources of Hazards
222
● have a matt surface
● have clearly legible symbols on the keys
The work surface should:
● provide adequate space for the user
● have a low reflective surface
● be of an adequate size to allow the screen, keyboard and other peripherals to be
flexibly arranged
● have a stable and adjustable document holder, which should be at the same level
as the screen and at the same viewing distance
Workplace Evacuation
In case of emergency there should be provision for evacuation. Evacuation is the
process of emptying a place in case of an emergency, disaster.
Every company must ensure following points for evacuation in case of any emergency:
• An evacuation policy : Every organization must have an evacuation policy. All the
Team Leaders are responsible for informing about the policy to their employees
about it. Proper attention must be paid when the Team Leader is informing you
about these details. Negligence at this time may cost lives.
• Organization must have a designated assembly point for emergencies. Ensure that
every employee/ worker must know where it is.
• A ‘buddy system’ for individuals with special needs or disabilities must be
designated. This system ensures that differently-abled are assisted and guided out
of the premises or the impacted area properly. If you are a buddy to someone,
ensure that your buddy is safe at the assembly point with you.
• Floor plans with evacuation routes in work areas. Ensure that you understand these
so you can use it in time of need.
• Assembly areas, where you are required to assemble after evacuation, must be
properly taken care of.
• Periodic evacuation drills should be conducted. Ensure that you pay attention
during these drills. You need to save your life and you can be helpful in saving
someone else’s life too.
223
Healthy Living
‘Healthy Lifestyle leads to a healthy being. A healthy living has a lasting impact on an
individual which ultimately yields a healthy environment at home as well as at work
place. a happy and healthy worker will always perform best to his ability.
A healthy lifestyle helps to keep and improve people’s health and well
ACTIVITY
Discuss and enlist the measures to avoid hazards in various situations at workplace and
in your school.
ASSESSMENT
1. An organization can face some that could put the lives of the
employees in danger.
2. Hazards can be of different types depending on the and the
225