Base Tutorial: from Newbie to Advocate in a One, Two

Total Page:16

File Type:pdf, Size:1020Kb

Base Tutorial: from Newbie to Advocate in a One, Two Base Tutorial: From Newbie to Advocate in a one, two... three! BASE TUTORIAL: From Newbie to Advocate in a one, two... three! Step-by-step guide to producing fairly sophisticated database applications with OpenOffice.org Base, from initial problem to final product complete with forms and reports. by Mariano Casanova Base Tutorial: From Newbie to Advocate in a one, two... three! By Mariano Casanova Copyright © 2010 Mariano Casanova. All rights reserved. First Edition: August 2010 Second Edition: September 2010 All names of products and companies mentioned in this text are the trademark of their respective owners and are mentioned here with no intention of infringement and for the benefit of those respective owners. Please note that the author can not provide software support. Please contact the appropriate software developers of Base or HSQL at: www.openoffice.org and www.hsqldb.org or their fantastic fan base and forum experts. The author has taken every precaution possible to ensure the correctness and appropriateness of the information provided in this text, including the testing of the code supplied. However, due to possible human or mechanical error from the sources, the constant changing and evolution of the software described and known and unknown issues in the code, its functioning and compatibility, the author can assume no responsibility for er- rors or omissions or for damages resulting from the use of the information provided here. The author does not guarantee the accuracy, adequacy or completeness of this information and shall not be liable to any person, legal or natural, with respect to any loss or damage caused or allegedly caused directly or indirectly by the use of such information, including but not limited to, business interruption, loss of profits or loss of data. The information is provided "as is" with no warranties whatso- ever of its appropriateness or fitness for any purpose. You use this information at your own risk. This digital edition can be distributed under the terms of the Creative Commons Attribution Non-Commercial Share Alike license, as described in: License, full text: http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode License, summary: http://creativecommons.org/licenses/by-nc-sa/3.0/ You can copy this electronic file and distribute this electronic file with no limitation for all non-commercial use. You can ad- apt, expand or translate this work as long as you: a) Attribute the work by providing the name of the initial author and a link to the original work or, if such link is not available, a reference to the source of your copy of the original work. Your attribu- tion must not suggest that the initial author endorses you or your use of the work. b) Clearly state the nature and scope of your contribution to the work. c) Distribute this work under the same or similar license and ensure that all derivatives will also be non-commercial in nature. You can not use this work or its derivatives for commercial purposes. Base Tutorial OOo. To everyone involved in the creation, distribution and documentation of free and open software And in particular to the developers, writers and administrators at OpenOffice.org ~Thanks! FROM NEWBIE TO ADVOCATE IN A ONE, TWO... THREE! Content overview: Part I: Things you need to know before you create a database with Base. Where we introduce this tutorial and its scope. We start by analyzing what a database is and describe its different components: Tables, relationships, primary and foreign keys, columns, column attributes, deletion attributes and relationship cardinalities and finally we provide a definition of database and Base database. We later comment on forms and reports and on modeling data and goals of proper design, after which we provide an over- view of UML diagrams to use as a visual vocabulary. We then summarily review phases in database design and the importance of Normal Form. We also review First, Second and Third normal forms and how they aid in class extraction. After this we review the way that Base records attributes and the nature of the variables it uses, analyzing text vari- ables, numeric variables, date and time variables and object variables and how choosing them properly will affect the performance of a Base application. Part II: Things you need to do before you code a database with Base. Where we offer a real case example and, using the elements presented in part I, we start with a problem and end with a database design. We cover class formation, class extrac- tion, the importance of atomization and descriptors. We apply normalization and other tools to decide on data structure and finally come up with a complete UML diagram of our database. We then stress the importance of using auxiliary elements like a Variables Definition List for the aid they provide in coding our application with Base. After this we analyze the problem of duplicity of roles in order to introduce the concept of super-class formation. We then analyze the forms and reports that we will use in conjunction with the design we have produced and describe the kind of features we will want them to have. Now that we understand how to design our tables, its connections, forms and reports, and what do the options that Base offers mean, we are ready to sit down in front of Base and start coding our database. Part III: Things you need to do while coding a database with Base. Where we describe how to use Base to create the database it took us so long to design, complete with forms and reports. We star by analyzing the setup and explain how to use SQL commands for the creation of tables and relationships, analyzing the “Create Table” and “Constraint” instructions in detail. We also review how to read their descriptions when consulting the Wiki or other sources. Then we describe in depth how to create forms to populate our tables and how to use radio buttons, sub-forms, list boxes and other widgets to simplify data entry. We later take our time to analyze the “Select” command to produce queries and extract information from our data and finally explain in detail how to produce the reports using both the Report Wizard and the SUN Report Builder. i BASE TUTORIAL Table of Contents Introduction:....................................................................................................................v Acknowledgments.........................................................................................................vii Part I: Things you need to know before you create a database with Base. Chapter 1..............................................................................................................................3 Introduction to databases.................................................................................................3 Anatomy of a database: Tables, attributes and relationships......................................3 Establishing relationships within tables.....................................................................7 Cardinality and optionality of a relationship..............................................................8 Managing relationships with column and delete options.........................................10 A definition of database and database design................................................................11 Talking about forms and reports....................................................................................12 Modeling data and goals of proper design....................................................................13 Visual vocabulary..........................................................................................................14 Phases in database design..............................................................................................16 Chapter 2............................................................................................................................19 Getting into normal form..............................................................................................19 First normal form......................................................................................................20 Second normal form.................................................................................................20 Third normal form....................................................................................................21 Aiming for simplicity....................................................................................................23 Chapter 3............................................................................................................................25 Recording attributes: Are you my variable?..................................................................25 Why is all this information relevant?............................................................................30 On logical Names and Physical Names........................................................................31 Part II: Things you need to do before you code a database with Base. Chapter 4............................................................................................................................35 Let's get real!.................................................................................................................35 Case Example: Now we need a problem.......................................................................35 Possible solution............................................................................................................39
Recommended publications
  • Preview HSQLDB Tutorial (PDF Version)
    About the Tutorial HyperSQL Database is a modern relational database manager that conforms closely to the SQL:2011 standard and JDBC 4 specifications. It supports all core features and RDBMS. HSQLDB is used for the development, testing, and deployment of database applications. In this tutorial, we will look closely at HSQLDB, which is one of the best open-source, multi-model, next generation NoSQL product. Audience This tutorial is designed for Software Professionals who are willing to learn HSQL Database in simple and easy steps. It will give you a great understanding on HSQLDB concepts. Prerequisites Before you start practicing the various types of examples given in this tutorial, we assume you are already aware of the concepts of database, especially RDBMS. Disclaimer & Copyright Copyright 2016 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected]. i Table of Contents About the Tutorial ...................................................................................................................................
    [Show full text]
  • Base Handbook Copyright
    Version 4.0 Base Handbook Copyright This document is Copyright © 2013 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later. All trademarks within this guide belong to their legitimate owners. Contributors Jochen Schiffers Robert Großkopf Jost Lange Hazel Russman Martin Fox Andrew Pitonyak Dan Lewis Jean Hollis Weber Acknowledgments This book is based on an original German document, which was translated by Hazel Russman and Martin Fox. Feedback Please direct any comments or suggestions about this document to: [email protected] Publication date and software version Published 3 July 2013. Based on LibreOffice 4.0. Documentation for LibreOffice is available at http://www.libreoffice.org/get-help/documentation Contents Copyright..................................................................................................................................... 2 Contributors.............................................................................................................................2 Feedback................................................................................................................................ 2 Acknowledgments................................................................................................................... 2 Publication
    [Show full text]
  • Wavelength (September 1986)
    University of New Orleans ScholarWorks@UNO Wavelength Midlo Center for New Orleans Studies 9-1986 Wavelength (September 1986) Connie Atkinson University of New Orleans Follow this and additional works at: https://scholarworks.uno.edu/wavelength Recommended Citation Wavelength (September 1986) 71 https://scholarworks.uno.edu/wavelength/62 This Book is brought to you for free and open access by the Midlo Center for New Orleans Studies at ScholarWorks@UNO. It has been accepted for inclusion in Wavelength by an authorized administrator of ScholarWorks@UNO. For more information, please contact [email protected]. NS SIC MAGA u........s......... ..AID lteniiH .... ., • ' lw•~.MI-- "I'm not sure, but I'm almost positive, that all music came from New Orleans." -Ernie K-Doe, 1979 Features The Party ... .... .. .. ... 21 The Faith . .... .. ....... 23 The Saints . .... .... .. 24 Departments September News ... ... .. 4 Latin ... ... .. ..... .. 8 Chomp Report ...... .. .. 10 Caribbean . .. .. ......... 12 Rock ........ ... ........ 14 Comedy ... ... .... .. ... 16 U.S. Indies .. .. ... .. ... 18 September Listings ... ... 29 Classifieds ..... ..... 33 Last Page . .. .. .... .... 34 Cover Art by Bunny MaHhews A1mlbzrot NetWCSfk Pubaidwr ~ N.. un~.,~n S ~·ou F:ditor. Cnnn~ /..c;rn.ih Atk 1 n~ Assonat• FAI1lor. (it.:n..: S4.at.&mU/It) Art Dindor. Thom~... Oul.an Ad,mL-Jn •. Fht.ah.:th hlf1l.J•~ - 1>1.:.tn.a N.M.l~'-' COft· tributon, Sl(\\.' Armf,ru,tcr. St (M.."tlfl!C Hry.&n. 0..-t> C.n.Jh4:llll, R1d. Culcnun. Carul Gn1ad) . (iu'U GUl'uuo('. Lynn H.arty. P.-t Jully. J.mlC' l.k:n, Bunny M .anhc~'· M. 11.k Oltvter. H.1mmnnd ~·,teL IAlm: Sll'l"t:l.
    [Show full text]
  • Full-Graph-Limited-Mvn-Deps.Pdf
    org.jboss.cl.jboss-cl-2.0.9.GA org.jboss.cl.jboss-cl-parent-2.2.1.GA org.jboss.cl.jboss-classloader-N/A org.jboss.cl.jboss-classloading-vfs-N/A org.jboss.cl.jboss-classloading-N/A org.primefaces.extensions.master-pom-1.0.0 org.sonatype.mercury.mercury-mp3-1.0-alpha-1 org.primefaces.themes.overcast-${primefaces.theme.version} org.primefaces.themes.dark-hive-${primefaces.theme.version}org.primefaces.themes.humanity-${primefaces.theme.version}org.primefaces.themes.le-frog-${primefaces.theme.version} org.primefaces.themes.south-street-${primefaces.theme.version}org.primefaces.themes.sunny-${primefaces.theme.version}org.primefaces.themes.hot-sneaks-${primefaces.theme.version}org.primefaces.themes.cupertino-${primefaces.theme.version} org.primefaces.themes.trontastic-${primefaces.theme.version}org.primefaces.themes.excite-bike-${primefaces.theme.version} org.apache.maven.mercury.mercury-external-N/A org.primefaces.themes.redmond-${primefaces.theme.version}org.primefaces.themes.afterwork-${primefaces.theme.version}org.primefaces.themes.glass-x-${primefaces.theme.version}org.primefaces.themes.home-${primefaces.theme.version} org.primefaces.themes.black-tie-${primefaces.theme.version}org.primefaces.themes.eggplant-${primefaces.theme.version} org.apache.maven.mercury.mercury-repo-remote-m2-N/Aorg.apache.maven.mercury.mercury-md-sat-N/A org.primefaces.themes.ui-lightness-${primefaces.theme.version}org.primefaces.themes.midnight-${primefaces.theme.version}org.primefaces.themes.mint-choc-${primefaces.theme.version}org.primefaces.themes.afternoon-${primefaces.theme.version}org.primefaces.themes.dot-luv-${primefaces.theme.version}org.primefaces.themes.smoothness-${primefaces.theme.version}org.primefaces.themes.swanky-purse-${primefaces.theme.version}
    [Show full text]
  • Main Page 1 Main Page
    Main Page 1 Main Page FLOSSMETRICS/ OpenTTT guides FLOSS (Free/Libre open source software) is one of the most important trends in IT since the advent of the PC and commodity software, but despite the potential impact on European firms, its adoption is still hampered by limited knowledge, especially among SMEs that could potentially benefit the most from it. This guide (developed in the context of the FLOSSMETRICS and OpenTTT projects) present a set of guidelines and suggestions for the adoption of open source software within SMEs, using a ladder model that will guide companies from the initial selection and adoption of FLOSS within the IT infrastructure up to the creation of suitable business models based on open source software. The guide is split into an introduction to FLOSS and a catalog of open source applications, selected to fulfill the requests that were gathered in the interviews and audit in the OpenTTT project. The application areas are infrastructural software (ranging from network and system management to security), ERP and CRM applications, groupware, document management, content management systems (CMS), VoIP, graphics/CAD/GIS systems, desktop applications, engineering and manufacturing, vertical business applications and eLearning. This is the third edition of the guide; the guide is distributed under a CC-attribution-sharealike 3.0 license. The author is Carlo Daffara ([email protected]). The complete guide in PDF format is avalaible here [1] Free/ Libre Open Source Software catalog Software: a guide for SMEs • Software Catalog Introduction • SME Guide Introduction • 1. What's Free/Libre/Open Source Software? • Security • 2. Ten myths about free/libre open source software • Data protection and recovery • 3.
    [Show full text]
  • Performance Evaluation of Relational Embedded Databases: an Empirical
    Performance evaluation of relational Check for updates embedded databases: an empirical study Evaluación del rendimiento de bases de datos embebida: un estudio empírico Author: ABSTRACT 1 Hassan B. Hassan Introduction: With the rapid deployment of embedded databases Qusay I. Sarhan2 across a wide range of embedded devices such as mobile devices, Internet of Things (IoT) devices, etc., the amount of data generat- ed by such devices is also growing increasingly. For this reason, the SCIENTIFIC RESEARCH performance is considered as a crucial criterion in the process of selecting the most suitable embedded database management system How to cite this paper: to be used to store/retrieve data of these devices. Currently, many Hassan, B. H., and Sarhan, Q. I., Performance embedded databases are available to be utilized in this context. Ma- evaluation of relational embedded databases: an empirical study, Kurdistan, Irak. Innovaciencia. terials and Methods: In this paper, four popular open-source rela- 2018; 6(1): 1-9. tional embedded databases; namely, H2, HSQLDB, Apache Derby, http://dx.doi.org/10.15649/2346075X.468 and SQLite have been compared experimentally with each other to evaluate their operational performance in terms of creating data- Reception date: base tables, retrieving data, inserting data, updating data, deleting Received: 22 September 2018 Accepted: 10 December 2018 data. Results and Discussion: The experimental results of this Published: 28 December 2018 paper have been illustrated in Table 4. Conclusions: The experi- mental results and analysis showed that HSQLDB outperformed other databases in most evaluation scenarios. Keywords: Embedded devices, Embedded databases, Performance evaluation, Database operational performance, Test methodology.
    [Show full text]
  • Review Supported Technologies
    Review Supported Technologies This document supports Pentaho Business Analytics Suite 5.0 GA and Pentaho Data Integration 5.0 GA, documentation revision August 28, 2013, copyright © 2013 Pentaho Corporation. No part may be reprinted without written permission from Pentaho Corporation. All trademarks are the property of their respective owners. Help and Support Resources If you do not find answers to your quesions here, please contact your Pentaho technical support representative. Support-related questions should be submitted through the Pentaho Customer Support Portal at http://support.pentaho.com. For information about how to purchase support or enable an additional named support contact, please contact your sales representative, or send an email to [email protected]. For information about instructor-led training, visit http://www.pentaho.com/training. Liability Limits and Warranty Disclaimer The author(s) of this document have used their best efforts in preparing the content and the programs contained in it. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, express or implied, with regard to these programs or the documentation contained in this book. The author(s) and Pentaho shall not be liable in the event of incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of the programs, associated instructions, and/or claims. Trademarks Pentaho (TM) and the Pentaho logo are registered trademarks of Pentaho Corporation. All other trademarks are the property of their respective owners. Trademarked names may appear throughout this document.
    [Show full text]
  • Openoffice.Org Base Macro Programming by Andrew Pitonyak
    OpenOffice.org Base Macro Programming By Andrew Pitonyak Last Modified Tuesday, July 28, 2009 at 09:54:04 PM Document Revision: 43 Information Page Copyright This document is Copyright © 2005-2009 by its contributors as listed in the section titled Authors. You can distribute it and/or modify it under the terms of the Creative Commons Attribution License, version 2.0 or later (http://creativecommons.org/licenses/by/2.0/). All trademarks within this guide belong to their legitimate owners. Authors Andrew Pitonyak Feedback Maintainer: Andrew Pitonyak [[email protected]] Please direct any comments or suggestions about this document to: [email protected] Acknowledgments I find it difficult to properly credit all of my sources, because so many people are helpful in an en devour of this size. There are, however, a few people who do indeed stand out in my mind as having provided significant encouragement. I have no explanation as to precisely why my wife Michelle allows me to spend so much time working with OpenOffice.org. Perhaps she is really the person that you should thank for my productivity. I Love you Michelle, you complete me. All of the people with whom I have interacted at Sun Microsystems have been very tolerant and patient with my endless questions. In the creation of this document, Frank Schönheit, however stands out in this regard. Mr. Schönheit spends a lot of time helping people with problems and questions, and most notable for me, he answers my questions. Thank you Frank! There is a large community volunteering their time with OpenOffice.org.
    [Show full text]
  • Eric Redmond, Jim R. Wilson — «Seven Databases in Seven Weeks
    What Readers Are Saying About Seven Databases in Seven Weeks The flow is perfect. On Friday, you’ll be up and running with a new database. On Saturday, you’ll see what it’s like under daily use. By Sunday, you’ll have learned a few tricks that might even surprise the experts! And next week, you’ll vault to another database and have fun all over again. ➤ Ian Dees Coauthor, Using JRuby Provides a great overview of several key databases that will multiply your data modeling options and skills. Read if you want database envy seven times in a row. ➤ Sean Copenhaver Lead Code Commodore, backgroundchecks.com This is by far the best substantive overview of modern databases. Unlike the host of tutorials, blog posts, and documentation I have read, this book taught me why I would want to use each type of database and the ways in which I can use them in a way that made me easily understand and retain the information. It was a pleasure to read. ➤ Loren Sands-Ramshaw Software Engineer, U.S. Department of Defense This is one of the best CouchDB introductions I have seen. ➤ Jan Lehnardt Apache CouchDB Developer and Author Seven Databases in Seven Weeks is an excellent introduction to all aspects of modern database design and implementation. Even spending a day in each chapter will broaden understanding at all skill levels, from novice to expert— there’s something there for everyone. ➤ Jerry Sievert Director of Engineering, Daily Insight Group In an ideal world, the book cover would have been big enough to call this book “Everything you never thought you wanted to know about databases that you can’t possibly live without.” To be fair, Seven Databases in Seven Weeks will probably sell better.
    [Show full text]
  • Working with Database Connections
    WWoorrkkiinngg wwiitthh DDaattaabbaassee CCoonnnneeccttiioonnss Intellicus Enterprise Reporting and BI Platform ©Intellicus Technologies [email protected] www.intellicus.com Working with Database Connections Copyright © 2013 Intellicus Technologies This document and its content is copyrighted material of Intellicus Technologies. The content may not be copied or derived from, through any means, in parts or in whole, without a prior written permission from Intellicus Technologies. All other product names are believed to be registered trademarks of the respective companies. Dated: June 2013 Acknowledgements Intellicus acknowledges using of third-party libraries to extend support to the functionalities that they provide. For details, visit: http://www.intellicus.com/acknowledgements.htm ii Working with Database Connections Contents Configuring Database Connections ........................................ 1 Finding a Connection .................................................................................. 5 Adding Database Connections ...................................................................... 6 Provider specific details for database connections .......................................... 7 BIG DATA ................................................................................................. 7 ASTERDATA ..................................................................................... 7 CASSANDRA .................................................................................... 7 GREENPLUM ...................................................................................
    [Show full text]
  • Chapter 2 Creating a Database Copyright
    Base Guide Chapter 2 Creating a Database Copyright This document is Copyright © 2020 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/), version 4.0 or later. All trademarks within this guide belong to their legitimate owners. Contributors To this edition Pulkit Krishna Dan Lewis Jean Hollis Weber To previous editions Pulkit Krishna Dan Lewis Jean Hollis Weber Jochen Schiffers Robert Großkopf Jost Lange Martin Fox Hazel Russman Feedback Please direct any comments or suggestions about this document to the Documentation Team’s mailing list: [email protected] Note: Everything you send to a mailing list, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted. Publication date and software version Published May 2020. Based on LibreOffice 6.4. Documentation for LibreOffice is available at http://documentation.libreoffice.org/en/ Contents Copyright..............................................................................................................................2 Contributors.................................................................................................................................2 To this edition..........................................................................................................................2
    [Show full text]
  • Semantic Web and Peer-To-Peer Steffenstaab·Heinerstuckenschmidt(Eds.) Semantic Web and Peer-To-Peer
    Semantic Web and Peer-to-Peer SteffenStaab·HeinerStuckenschmidt(Eds.) Semantic Web and Peer-to-Peer Decentralized Management and Exchange of Knowledge and Information With 89 Figures and 15 Tables 123 Editors Steffen Staab University of Koblenz Institute for Computer Science Universitaetsstr. 1 56016 Koblenz, Germany [email protected] Heiner Stuckenschmidt University of Mannheim Institute for Practical Computer Science A5, 6 68159 Mannheim, Germany [email protected] Library of Congress Control Number: 2005936055 ACM Computing Classification (1998): C.2.4, H.3, I.2.4 ISBN-10 3-540-28346-3 Springer Berlin Heidelberg New York ISBN-13 978-3-540-28346-1 Springer Berlin Heidelberg New York This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilm or in any other way, and storage in data banks. Duplication of this publication or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permission for use must always be obtained from Springer. Violations are liable for prosecution under the German Copyright Law. Springer is a part of Springer Science+Business Media springeronline.com © Springer-Verlag Berlin Heidelberg 2006 Printed in Germany The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant pro- tective laws and regulations and therefore free for general use.
    [Show full text]