Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Designing Tables in Microsoft Access By Ed Lance.
Microsoft Access.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Computer Concepts BASICS 4th Edition
Microsoft Access Course 1. Introduction to the user interface.
Integrating Access with the Web and with Other Programs.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Developing Effective Reports
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Access Tutorial 10 Automating Tasks with Macros
Your Tour Guide is Jim Provensal. What We Will Cover s Introduction to MicroSoft Access u What is a database u What is a “Relational” Database s The Major.
MICROSOFT ACCESS Pn. Jamilah Binti Yusof. DEFINITION A database is the computer equivalent of an organized list of information. Typically, this information.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Access Tutorial 2 Building a Database and Defining Table Relationships
Introduction to database systems
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Access Primer Africamuseum 5 June MS Access  Relational Database Management System Data/information resides in series of related tables Principle.
Microsoft Access 2010 Building and Using Queries.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
S511 Session 7, IU-SLIS 1 DB Implementation: MS Access Forms.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Chapter 17 Creating a Database.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
CIS 250 Advanced Computer Applications Introduction to Access.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Presented By: Gail Rose-Innes Camps Bay High School ICT & CAT Department Microsoft Access 2010.
33 CHAPTER General- Purpose APPLICATION SOFTWARE.
CSC 240 (Blum)1 Forms and Importing Data in Access.
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
DB Implementation: MS Access Forms. MS Access Forms  Purpose Data entry, editing, & viewing data in tables Forms are user-friendlier to end-users than.
1/62 Introduction to and Using MS Access Database Management and Analysis Yunho Song.
Lesson 01: Introduction to Database Software. At the end of this lesson, students should be able to: State the usage of database software. Start a database.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Microsoft Access.  What is Data ?  Data vs. Information  Database History.  What is a Database?  Examples for Small and Large Databases.  Types.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
COMPUTER SKILLS MS-ACCESS. Introduction Access is a piece of software known as a database management system. At its most basic level, it can be used to.
Access Tutorial 2 Building a Database and Defining Table Relationships
Practical Office 2007 Chapter 10
Developing Forms and Subforms.
Microsoft Office Access 2003
Microsoft Office Access 2003
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Introduction to Access
Introduction to MS ACCESS
Tutorial 10 Automating Tasks with Macros
Presentation transcript:

Database Ed Milne

Theme An introduction to databases Using the Base component of LibreOffice LibreOffice

Database A database is a structured set of data held in a computer

SQL Structured Query Language (SQL) is a programming language used to create, maintain and extract data from databases It is an ISO standard e.g. SELECT isbn, title, price, price * 0.14 AS sales_tax FROM book WHERE price > 100 ORDER BY title

Base Base, a component of the LibreOffice suite is a front end to a database The back end, the database engine, can be A spreadsheet (Calc) HSQL – open source freeware embedded in base External sophisticated database engines such as PostgreSQL, MySQL and MariaDBPostgreSQLMySQLMariaDB

Database Engines The appropriate database engine depends on the performance of your computer and the amount of data in the database As a rough guide Spreadsheets – up to 1,000 records HSQL – up to 50,000 records MYSQL etc. - over 50,000 records

Database Engines Using HSQL creates a database in a single file Using other engines creates two objects The Base front end The DB engine containing the data This can be useful when more than one person can be accessing the data at the same time In an organization, the engine can be on a server and a copy of the front end is on each employee's computer

Database Engines Sophisticated engines prevent two people from changing the same record at the same time Separate engines also make maintenance easier Changes to the front end can be copied to each user e.g. New forms or reports Changes to the engine only have to be made at a single location

Database Engines A separate front end and engine is also used on the web e.g. When you register at a web site, the form on the web page is the front end of a database

Tables The data in a database is organized in tables which look much like a spreadsheet LibreOffice has a wizard for creating tables

Fields A table consists of fields Each field is the equivalent of a column in a spreadsheet

Field Data Type Each field can only accept a specific type of data cf. a spreadsheet where you can enter any type of data in any cell Integer Big integer – up to 19 digits Integer – up to 10 digits Small integer – up to 5 digits Tiny integer – up to 3 digits

Field Data Type Numbers Decimal – 10 digits Fixed number of decimal places Float, Real, Double 17 digits e.g. 1.23E+017 Text Text – only uses the space required for the data Text (fix) Text (ignore case) Long text (memo) – up to 2,147,483,647 characters

Field Data Type Date and Time Date Time – HH:MM:SS Timestamp – date and time Boolean Yes/No

Field Data Type Binary - up to 2,147,483,647 bytes Image Binary Binary (fix) Other Up to 2,147,483,647 bytes

Indexes Each table must have a primary index to uniquely identify each record cf. The row number in a spreadsheet The integer data type has an autonumber feature which automatically creates a unique number for the record

Relations You can relate tables together by Adding a field for the primary index in another table to a table Linking these fields together

One-to-Many Relationship In the example shown, each media record can be linked to many books

Many-to-Many Relationship A many-to-many relationship can be made using an intermediate table In the example shown,a book can have more than one subject and a subject can relate to many books

Views You can create a View of a table which contains a subset of the fields in a table a set of fields from related tables A view is a virtual table which can be used much like a table

Forms Forms let you add or edit the information in a database LibreOffice has a wizard for creating forms from a table or view

Forms The forms editor is the word processing component of LibreOffice After creation, you can modify the form

Filters You can filter the data on a form so only records with certain values appear e.g. You can filter the data in a book form so that only records with the medium Magazine appear as you browse through the records

Datasheet Form A datasheet form appears like a spreadsheet

Subforms Subforms are forms within a form Typically a datasheet form within a field form

Form Controls Check box Text box Numeric field Currency field Date field Time field Pattern field Spin button Push button Option button Image button (icon) List box Combo box Label Image Scroll bar Frame Navigation bar

Check Box A check box accepts a Boolean (Yes/No) value

Currency Control Accepts a currency value The spin box control on the right increments or decrements the value by $1

Date and Time Controls There are various ways to format the date and time The large down arrow displays a calendar The spin buttons change the value selected by the position of the cursor E.g year, month or day

Dropdown Menus Lets you select a value from a related table A list of constants embedded in the form

Dropdown Menus A list box saves the index of the record in the related table in the primary record A combo box saves the displayed text in the primary record Either control can save the selected value in the form rather than the record

Buttons Buttons can be used to execute a macro for the form set a value in the record

Macros Macros are subroutines in the programming language used by the application In this case OpenOffice Basic You can create macros by 1 Learning the programming language and writing the code 2 Recording a macro 3 Searching the web Searching the web 4 From booksbooks

Macro Example

Executing Macros You can execute a macro by Using the Run Macro option in the menus Assigning a shortcut key to the macro Linking the macro to an event for a form or control

Form Events

Push Button Events

Queries Queries let you select, organize and manipulate data from the database Queries are used to select and organize the fields for dropdown menus reports

Queries Base provides a Graphical User Interface (GUI) for select queries to Select fields Determine which fields should be visible Select records with specific values in a field Sort the extracted data Apply functions like Count or Average to the fields

Queries The GUI generates SQL code like

Queries You can use other queries as well as tables as the data source i.e. You can created nested queries In Base, you hand code other types of queries in SQL e.g. An Update query to make a mass change to the data UPDATE "tblSubjectWork" SET "SubjectID" = '5' WHERE "SubjectID" = '7'

Reports Base has a report generator to create reports from queries or tables Reports can be Grouped Group headers and footers Sorted Output to text documents or spreadsheets

Reports

Database for Spreadsheets Why use a spreadsheet as the back end of a database? You already have the data in a spreadsheet You want to use some features of a spreadsheet like charts and graphs A database allows strict data typing and limits r.g. A value must be present and within a specific range Forms avoid horizontal scrolling Database reports

References LibreOffice Base Guide Base Tutorial