Free Online Training Courses

Author: paul.gray

  • Common Database Tasks

    Tables

    Tables are used to store records (pieces of data) within a database.

    Records are entered into tables under fields that are created when editing the table. Fields are similar to the headings given to columns in a spreadsheet.

    An unlimited number of tables can be created in a database, containing different types of data.

    [the_ad id=”12355″]
    [the_ad id=”12356″]

    For example, a shop may keep records of stock, employees, sales, revenue, etc. all in the same database, but in various tables with different titles.

    Open, save and close a table

    1 Open

    To open a table in an existing database, click on ‘Tables’ in the ‘Database’ area of the main window.

    Then double-click on one of the tables in the ‘Tables’ area.

    2 Tables

    If you make changes to any records in the table, click the disc icon to save it.

    To close the table, click the cross in the upper right corner of the table window.

    Queries

    Queries are a method of extracting data from the tables within a database. Data can be extracted from more than one table at a time using a query, as long as the tables have a relationship created between them.

    For instance, a company may use a query that searches through employee data to find out who is paid the most, or which employees are paid more than a certain amount.

    There are 3 ways to create queries in LibreOffice Base. They are design view, wizard and SQL (Structured Query Language). SQL is the most advanced of these and the most versatile.

    Open, save and close a query

    3 Open Query

    To open a query, first click on ‘Queries’ in the ‘Database’ area of the main window.

    Then double click the relevant query in the ‘Queries’ area to open it.

    Forms

    A database form is a user interface that helps with data entry and maintenance.

    For instance, an engineering company may use a database to log faults with machinery. They can create a form that allows engineers to enter relevant details of the fault in a clear, well laid out form, rather than trying to enter them directly into a table which is more difficult and a slower process.

    Forms can also be used to allow a quick view of records within a table. They can be displayed in order, one record at a time, or filtered to show records with specific data only.

    A form could be described as a window into a database where people can view and edit records in a simple way. Changes to data have to be saved before exiting forms.

    Open, save and close a form

    4 Open Form

    To open a form, first click on ‘Forms’ in the ‘Database’ area of the main window.

    Then double click on the relevant form in the ‘Forms’ area.

    5 Forms Area

    To save the form click the disc icon to ‘Save as’.

    Choose ‘Save copy as’ then select a location and name the file.

    Reports

    A database report is a formatted display of records from a table or the results of a query.
    Reports provide users with information that can help decision making or analysis, in an easy-to-view format.

    For example, a bank could use database reports to list monthly loan summaries for customers. They can use the report to highlight which customers are behind on their repayments. They could break down the data further by creating reports linked to queries that break down the number of customers that are behind on payments for large loans, compared to those for smaller ones.

    Output parameters and restrictions can be applied to reports, as well as grouping data so that it isn’t repeated. This is explained in more detail later on in the course.

    Open, save and close a report

    6 Open Report

    To open a report Click on ‘Reports’ in the ‘Database’ area of the main window.

    Then double click on the relevant report in the ‘Reports’ area.

    7 Report Area

    The report will open in a LibreOffice Writer window.

    To save the report as a text document, click the ‘Save’ icon and name the file and save to a specified Folder.

    To close the report document, click the cross in the top right corner of the window

    [the_ad id=”12397″]

  • Understanding Databases – Glossary Of Terms

    AND

    A logical operator that is used in queries to state that values must satisfy all of the set criteria.

    Autovalue

    A feature that can be attributed to data under a certain field (often the primary key) of a table that will automatically create a unique number for each entry. Best used with ‘integer’ data type.

    [the_ad id=”12355″]

    Field

    The separate areas/titles in a table, which form the columns. For instance, First Name may be one field, Surname may be another.

    Foreign Key

    A key from a second table that is related to the first. E.g. Table A may have Item Code as the primary key, linked to ID number in table B which is the foreign key

    Form

    An on-screen user interface for entering, modifying or viewing data records.

    Integer

    A positive or negative whole number or zero, with no decimals.

    OR

    A logical operator that is used in queries to state that values must satisfy at least one of two or more criteria.

    Primary Key

    A field which uniquely identifies a record, e.g. Staff ID number or Item Barcode. The database creator can specify which field to set as the primary key. If none of the existing fields have unique identifiers, the autovalue feature can be set for integers to create a unique ID for each record.

    [the_ad id=”12356″]

    Query

    A method of extracting specific data from one or more tables. This is done by using the Wizard (simplest method) or Structured Query Language (SQL) (complex method).

    Record

    Data that is stored in a table, under a particular field. Records form the rows of a table.

    Relationships

    A method of linking records between tables to save repeating the same data. E.g. Names in one table, phone numbers in another, linked by staff ID number. Data cannot be altered in a secondary table without the primary table being altered first to preserve integrity.

    Report

    A report is an output displaying specific records from a database. Reports can display data directly from tables or queries and exports them to a document which can be saved or printed.

    Table

    A table contains fields (columns) and records (rows), that store data. There is no limit on the number of tables that can be created within a database.

    Wildcard

    Characters including * and ? that are used in searches or queries to represent one or more other characters.

    [the_ad id=”12397″]

  • Working with Databases

    Open a database application

    To start LibreOffice Base, search from the ‘Start’ menu or find the LibreOffice folder and click the LibreOffice Base icon.

    [the_ad id=”12355″]
    [the_ad id=”12356″]
    1 Run

    Open an existing database

    2 Wizard

    To open an existing database, choose the option ‘open an existing database file’ from the wizard, which is the first screen you see.

    Choose a file from the drop-down menu of recently used files or click ‘Open’ to select a file from your drive.

    Click on the file you want to open then click finish to open the database.

    Create a new database file

    3 New File

    To create a new database file, click on ‘File’ from the main menu bar, then click ‘New’ from the drop-down menu. Click ‘Database’ from the sub-menu. This will open the ‘LibreOffice Database Wizard’

    4 New Database Wizard

    In the LibreOffice Database Wizard, select ‘Create a new database’ then click ‘Next’

    5 Save and Procede

    From the ‘Save and proceed’, select ‘Yes, register the database for me’. This allows you to import data into other applications. Select ‘Open the database for editing’, then click ‘Finish’.

    6 Save as

    Choose a location on your drive and name the file saving it as file type ‘ODF Database’. Click ‘Save’.

    Display, hide built-in toolbars

    7 Toolbar

    The option to display or hide the built-in toolbars can be controlled by clicking ‘View’ from the main menu bar.

    Then click ‘Toolbars’ from the drop-down menu.

    You can then check or uncheck various toolbars to display or hide them respectively.

    Use available Help functions

    8 Help

    Click ‘Help’ on the menu bar.

    Click ‘LibreOffice Help’ or press ‘F1’ key on the keyboard.

    This will open a web browser window with online help.

    [the_ad id=”12397″]

  • Understanding Databases

    Key Concepts

    A database is a collection of data stored in tables to be easily accessed, managed, and updated.

    Examples might be a shop’s stock inventory or airline booking system.

    Tables are split up into records (rows) and fields (columns)

    [the_ad id=”12355″]
    [the_ad id=”12356″]
    1 Key Concepts

    A database offers more complex ways of using data than spreadsheets and data can be entered via forms.

    1a Forms

    A database form is a user interface that allows users to enter new data records and modify existing ones.

    Forms also allow a quick and simple way to view the records without searching through the entire table.

    Forms can be searched with a sophisticated search tool, built-in to the software.

    Database Organization

    Each table should only contain one subject type

    You can create other tables within the same database to contain gender, age, phone numbers etc.

    2 Fields

    Fields are the columns in a table, and are given different titles, depending on the data contained in the records (rows).

    Fields have set data types (e.g: text, number, date/time, yes/no) and set properties (e.g: field size, format, default value)

    3 Primary Key

    Databases have one primary key which is a unique ID and is set for the main table in the database.

    The primary key is numeric data and is often set as an integer (whole number).

    You can choose which field to make the primary key, so you can use existing unique item codes or staff ID numbers, for instance.

    Example

    An example of a database structure could be for a sports shop.

    They may have a table that lists general details of stock, with fields including ‘Item code’ – the primary key, ‘Type of equipment’, ‘Cost’, ‘Size’, ‘Location in store’ etc.

    In another table they may list other data such as ‘Brand’, ‘Model’ etc.
    Another table may hold records listing sales figures for each item.

    It’s best to create different tables for different data/fields.

    By separating out the data into different tables, it is possible to filter the data more easily using a ‘Query’ which is a way of extracting data from a database.

    Relationships can be built between the tables that link the data together, in this case by the item code, for example.

    Another table could hold information on employees, which would be completely separate from the stock data. There is no limit on the number of tables you can create within a database.

    4 Index

    An index can be created from a table, allowing data to be sorted by different fields.

    Indexes allow you to easily locate data without the need to search each row.

    Relationships

    5 Relationship

    In a relational database, different tables can be related to each other.

    Relationships between tables prevents duplication of data, meaning only a single subject type is used in each table.

    The most common relationship is to relate primary keys between tables

    6 Common Relationship

    You can also create relationships between fields using the relationships tool

    Relationships allow you to extract data from more than one table by linking the primary key from one table to a foreign key from another. E.g. you can extract names from one table and phone numbers from another.

    This can be used when extracting data from more than one table to show in a report.

    6a Reports

    Reports are database outputs that display data in a customisable user-friendly format. Relationships make it easy to display data from various tables.

    You can choose which fields and records to include in a table and also apply functions to show things like sum totals and averages.

    An example of a database report could be a quarterly financial statement.

    Operation

    7 Operation

    Professional databases are normally designed and created by database specialists.

    Data entry and information retrieval are done by users – e.g. a flight booking clerk or customer will fill out a form for data entry and the airline will retrieve the information.

    A database administrator provides access to specific data for users. They are also responsible for data recovery in the event of a crash or error.

    [the_ad id=’12397′]

  • Math Quiz

    This quiz is designed to test your knowledge of the contents of the LibreOffice Math Application, part of the Office Software Suite series.
    [the_ad id=’13545′]
    There are twenty questions. The pass mark is 70 out of a potential 100 points, 5 for each question.

    Once you are satisfied with your answers, complete your name and email address and select “Submit Quiz“ to have your answers marked.

    You will shortly receive an email advising you of your score, whether you have passed the quiz, and how your answers have been scored. It will also include your Free Online Training course quiz completion Certificate for the appropriate quiz.
    [qsm quiz=11]

    [the_ad id=’13545′]

  • Math – Import and Export

    Export as PDF

    In Math, we can export a formula as a PDF document. To export as a PDF, click on ‘File’ from the main menu bar. From the resulting drop-down, click on ‘Export’. This opens the ‘Export’ dialog box.
    [the_ad id=”12355″]
    [show_slider name=math-import-and-export]
    [the_ad id=”12356″]
    In this dialog box, we can browse to the folder where we want to save the file and thus select the appropriate location. To change the name by which the file will get saved, just enter the new name in the ‘File Name:’ field.

    Also, in this dialog box, under the ‘Save as type:’ field, select ‘PDF’. After making these changes, click on ‘Save’. This will save the PDF file to the location which has been specified and under the given file name.

    Export as MathML and other File Formats

    In Math, in addition to exporting documents as PDFs, we can also export the formulas as MathML. MathML is a very useful file format but unfortunately all the browsers do not follow this standard perfectly. So if there are any faults in the display of the files, the fault lies with the browser being used.

    Now, to export as MathML, click on ‘File’ from the main menu bar. From the resulting drop-down, click on ‘Save As’. This opens the ‘Save As’ dialog box. In this dialog box, choose MathML from the list of available file formats under ‘Save as type’. Now click on ‘Save’ to save your formula as MathML.

    Other than MathML, we can export files in LibreOffice Math in XHTML, Flat XML and the different Microsoft file formats.
    [the_ad id=”12397″]

  • Math – Customization

    Formula editor as a floating window.

    The formula editor can cover a large part of the Writer window. In Writer, it is possible to turn the formula editor into a floating window. To convert the formula editor into a floating window hover the mouse over the editor frame. Now hold down the ‘Control’ key from the keyboard and double-click. The formula editor will get converted into a floating window.
    [the_ad id=”12355″]
    [show_slider name=math-customization]
    [the_ad id=”12356″]
    The floating window can be restored back into its original position again by using the same steps. Hold down the ‘Control’ key and double-click the window frame.

    Customizing the Catalog

    If we need to use a symbol that is not available in Math, we can add this symbol to the catalog. To add a new symbol to the catalog, first of all click on ‘Tools’ from the main menu bar and from the resulting menu, click on ‘Catalog’. This will open the ‘Symbols’ catalog.

    In this dialog, click on the ‘Edit’ button and this will open the ‘Edit symbols’ window.

    In the ‘Edit Symbols’ window, the symbols are arranged in symbol sets. In the lower part of the window, choose an available set for the new symbol from the ‘Symbol set’ list, for example the Special set. We can also type the name of a new symbol set directly into the box. Now from the ‘Font’ list, choose a font that contains the desired symbol. When we have selected a font, its characters appear in the font summary window. We can scroll through it using the scrollbar at the side, or use the ‘Subset’ list to go straight to the place we need.

    Here, we are going to choose the font ‘Raavi’ and the subset ‘Gurumukhi’. Now click on the desired symbol. It appears enlarged in the right-hand preview box. Make sure that the symbol set is set to Special. In the ‘Symbol’ field, enter a name for the symbol, for example ‘Punj’. If the name is not already in use, the ‘Add’ button becomes active. Click on it and then click on ‘OK’ to close the dialog.

    Now the Symbol set view area shows the new symbol. It can be selected just like the other symbols, either from here, or by writing them directly into the equation editor in the form ‘%Punj’.

    Space at the end of a formula

    The grave accent ` inserts a small additional space into the formula; the tilde ~ inserts a larger one. In the basic installation, these symbols are ignored when they occur at the end of a formula.

    However, when working with running text, it may be necessary to include spacing at the end of formulas as well. This customization is only available when you are working with a Math document, and not when you are embedding a Math object.

    To insert a space at the end of a formula, click on ‘Tools’ from the main menu bar and from the resulting menu, click on ‘Options’. This will open the ‘Options’ dialog box. In this dialog box, choose LibreOffice Math and on the Settings page, uncheck the option ‘Ignore ~ and ` at the end of the line’.

    Application to chemical formulas

    Math was designed to build mathematical formulas, but it can also be used to write chemical formulas. Below are some examples of chemical formulas.

    Empty braces after ‘2-’ are necessary to avoid errors as there is no right member after the minus sign.

    ‘lsub’ or ‘lsup’ are abbreviations for left subscript and left superscript.

    For reversible reactions, there are no satisfactory double arrows in Math. If we have a font with a correct symbol, we can customize the catalog to save the symbol. DejaVu fonts have these double arrows ⇄ ⇆ ⇋ ⇌. Otherwise, we can find a special character in a document and copy it.
    [the_ad id=”12397″]

  • Using Math With Calc, Impress and Draw

    Graphical properties.

    Formula objects have similar properties in Calc, Impress, and Draw. They are always inserted with a transparent background and without borders. In Draw and Impress, they are assigned the Default graphical style; there is no assigned style for them in Calc and properties need to be specified explicitly.
    [the_ad id=”12355″]
    [show_slider name=using-math-with-calc-impress-and-draw]
    [the_ad id=”12356″]

    A formula can be positioned anywhere. We can use the mouse or the arrow keys to position a formula.

    Combining formulas with text

    Since a formula is an OLE object, we cannot insert it into the content of a spreadsheet cell, graphic or presentation object. Thus, unlike in Writer, we cannot integrate formulas with running text. Instead, we can write the text directly into the formula. An example has been shown below.
    [the_ad id=”12397″]

  • Using Math With Writer Documents

    Numbering equations in Writer

    We can write numbered equations in Writer. Equation numbering is one of the Writer’s best hidden features. The steps are very simple.

    Start a new line in Writer. Type ‘fn’ and then press ‘F3’ from the keyboard.
    [the_ad id=”12355″]
    [show_slider name=using-math-with-writer-documents]
    [the_ad id=”12356″]
    The ‘fn’ gets replaced by the numbered formula:

    E = mc2 (2)

    Now we can double-click on the formula to edit it.

    Text Mode

    In Writer, large formulas should always be in a paragraph of their own, separated from the other text. When we use formula elements in running text, they can often be higher than the letter height. However, if it is necessary to place a formula within running text, we need to use the ‘Text Mode’.

    We can switch to the Text Mode by going into the equation editor and then clicking on ‘Format’ from the main menu bar and from the resulting menu, clicking on ‘Text Mode’. After switching on the Text Mode, Math will try to shrink the formula to fit the letter height. The numerators and denominators of fractions are shrunk, and the limits of integrals and sums are placed beside the integral/sum sign.

    This way the formula looks more like a part of the remaining text.

    Background, Border and Size of Formulas in Writer

    In the basic installation of Math, formulas have a transparent background and no borders. The size of a formula cannot be adjusted; in a Writer document it depends directly on the way the formula is constructed. So we can define the font size of the formula while creating it but cannot change it afterwards. The method for changing the font size of a formula has already been discussed in one of the earlier sections.

    Fast insertion of formulas

    If we know the markup of the formula, there is a faster method to build a formula in Writer. First of all write the formula markup in Writer. Then select this markup. Now insert the formula using the keyboard shortcuts. The creation and usage of keyboard shortcuts have been discussed in the Writer tutorials. This method avoids opening and closing the Math window and saves a reasonable amount of time.
    [the_ad id=”12397″]

  • Math – Changing The Appearance

    Adjusting spacing.

    To increase or decrease the spacing between the different elements of a formula, click on ‘Format’ from the main menu bar and from the resulting menu, click on ‘Spacing’. This will open the ‘Spacing’ dialog box.

    [the_ad id=”12355″]
    [show_slider name=math-appearance-of-formulas]
    [the_ad id=”12356″]

    In this dialog box, under ‘Spacing’, the spacing between different elements of an equation can be selected.

    In order to select the spacing between other types of elements, click on ‘Category’. This will list all the different categories of symbols in Math. Click on the required category and then make the required changes to the spacing between different elements for that category.

    After making all the changes, click on ‘OK’. This will implement the selected changes to the Math document.

    We can change the spacing between the different elements of a formula using this method. The elements which are getting affected using this method are highlighted in the preview area and so this makes working with the right elements very simple.

    Changing the alignment.

    We can also change the alignment of formulas in Math. In order to change the alignment of formulas in Math, click on ‘Format’ from the main menu bar and from the resulting menu, click on ‘Alignment’. This will open the ‘Alignment’ dialog box. In this dialog box, we can select among the different alignment types using the radio buttons which have been provided. After selecting the required alignment property, click on ‘OK’. This will change the alignment of the formulas appropriately.

    Changing the color.

    In Math, the command ‘color’ can be used to change the color of a subset of a formula: ‘color red ABC’ gives ‘ABC’. There are eight colors to choose between: white, black, cyan, magenta, red, blue, green, and yellow. You may give a color to a subset of a formula if it is gathered between { } or other parentheses. For instance: ‘A B color green {C D} E’ gives ‘ABCDE’. If several colors are used, the one the more inside the formula is applied, as in this example: ‘color blue {A B color yellow C D}’ gives ‘ABCD’.

    It is not possible to select background color: it is always transparent in Math.
    [the_ad id=”12397″]