Creación de tablas en LibreOffice Base (3/6)
Creating a Shoe Database in LibreOffice Base
Introduction to Table Creation
- The process begins by opening LibreOffice Base and navigating to the tables section, where users can create tables either in design mode or using a wizard.
Design Mode vs. Wizard
- While the wizard offers pre-defined table types for invoices, customers, and employees, this tutorial focuses on creating a table in design mode for more customization.
Defining Fields for the Shoes Table
- The first field added is "shoe ID," which is an integer type that serves as a primary key to uniquely identify each record without duplicates.
- The automatic value feature ensures that the shoe ID increments automatically with each new entry, starting from one or zero.
Adding Additional Fields
- Following the shoe ID, fields such as "brand" (varchar), "model" (varchar), "style" (varchar), and "color" (varchar) are added; brand will act as a foreign key linked to another table.
- For shoe size, an integer type is selected but formatted to allow decimal values since sizes may include half sizes.
Setting Field Formats
- Price is also set as a decimal type with two decimal places specified for accurate monetary representation.
- An acquisition date field of type date time is created, ensuring proper formatting for storing dates in day-month-year format.
Finalizing Table Structure
- An image field is included for storing photos of shoes, while additional fields like "secondhand" (boolean type), store name, and country of manufacture are defined without spaces or accents in their names.
- After completing the structure of the shoes table, changes are saved under the name “shoes,” allowing users to edit or enter records later through LibreOffice Base's interface.
Next Steps
- The speaker plans to create two additional tables with simple fields similar to those already discussed and will establish relationships between these tables in future videos.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.