<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=LibreOffice-Suite-Base%2FC2%2FTables-and-Relationships%2FEnglish</id>
		<title>LibreOffice-Suite-Base/C2/Tables-and-Relationships/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=LibreOffice-Suite-Base%2FC2%2FTables-and-Relationships%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&amp;action=history"/>
		<updated>2026-04-08T22:48:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&amp;diff=993&amp;oldid=prev</id>
		<title>Pravin1389: moved LibreOffice-Suite-Base/C2/Tables-and-Relationships /English to LibreOffice-Suite-Base/C2/Tables-and-Relationships/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&amp;diff=993&amp;oldid=prev"/>
				<updated>2012-12-02T09:05:55Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/LibreOffice-Suite-Base/C2/Tables-and-Relationships_/English&quot; class=&quot;mw-redirect&quot; title=&quot;LibreOffice-Suite-Base/C2/Tables-and-Relationships /English&quot;&gt;LibreOffice-Suite-Base/C2/Tables-and-Relationships /English&lt;/a&gt; to &lt;a href=&quot;/index.php/LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&quot; title=&quot;LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&quot;&gt;LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:05, 2 December 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pravin1389</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&amp;diff=312&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{| border=1 !Visual Cues !Narration |- |Show Slide Number 1 Spoken tutorial on LibreOffice Base: Tables and Relationships Learning Objectives 1.Adding data to a Table 2.Define an…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C2/Tables-and-Relationships/English&amp;diff=312&amp;oldid=prev"/>
				<updated>2012-11-27T14:39:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{| border=1 !Visual Cues !Narration |- |Show Slide Number 1 Spoken tutorial on LibreOffice Base: Tables and Relationships Learning Objectives 1.Adding data to a Table 2.Define an…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
!Visual Cues&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide Number 1&lt;br /&gt;
Spoken tutorial on LibreOffice Base: Tables and Relationships&lt;br /&gt;
Learning Objectives&lt;br /&gt;
1.Adding data to a Table&lt;br /&gt;
2.Define and create relationships&lt;br /&gt;
|Welcome to the Spoken tutorial on LibreOffice Base.&lt;br /&gt;
In this tutorial, we will cover Tables and Relationships in LibreOffice Base. Here, we will learn about&lt;br /&gt;
1.Adding data to a Table&lt;br /&gt;
2.Define and create relationships&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide Number 2&lt;br /&gt;
Adding data to a Table&lt;br /&gt;
|In the previous LibreOffice Base tutorial, we introduced Base, database basics and learnt how to create a database and a table. &lt;br /&gt;
&lt;br /&gt;
During the course of the tutorial we also created an example database called Library and created a Books table as well. &lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will resume with the Library database and learn how to add data to a table.&lt;br /&gt;
|-&lt;br /&gt;
|Open LibreOffice Base program from Start--&amp;gt;All Programs--&amp;gt;LibreOffice Suite--&amp;gt; LibreOffice Base&lt;br /&gt;
&lt;br /&gt;
Click on the 'open an existing database file' option.&lt;br /&gt;
In the 'Recently Used' drop down box, Library should be visible, &lt;br /&gt;
&lt;br /&gt;
Click on Library.odb file&lt;br /&gt;
&lt;br /&gt;
Click on the Finish button.&lt;br /&gt;
&lt;br /&gt;
In LibreOffice Base, click on File &amp;gt;&amp;gt; Open .&lt;br /&gt;
&lt;br /&gt;
Browse to directory where Library.odb file is saved&lt;br /&gt;
&lt;br /&gt;
Click on it, and click on open.&lt;br /&gt;
|For this, let us invoke the LibreOffice Base program. &lt;br /&gt;
&lt;br /&gt;
For this, we will click on the Start button at the bottom left of the screen, click on All programs, then click on LibreOffice Suite and LibreOffice Base.&lt;br /&gt;
&lt;br /&gt;
Since we already created the Library database in the last tutorial, this time we will just need to open it.&lt;br /&gt;
&lt;br /&gt;
To do so, let us click on the 'open an existing database file' option.&lt;br /&gt;
&lt;br /&gt;
In the 'Recently Used' drop down box, our Library database should be visible, &lt;br /&gt;
&lt;br /&gt;
So now, click on the Finish button. &lt;br /&gt;
&lt;br /&gt;
If you don't see it, we can click on the Open button in the centre to browse to the Windows directory where Library database is saved. &lt;br /&gt;
&lt;br /&gt;
Once found, click on the filename &lt;br /&gt;
&lt;br /&gt;
And click on the Open button. &lt;br /&gt;
&lt;br /&gt;
Now, if LibreOffice Base program is already open, we can open the Library database from here, &lt;br /&gt;
&lt;br /&gt;
By clicking on the File menu on the top and then clicking on Open. &lt;br /&gt;
&lt;br /&gt;
We will browse the Windows directory where the Library database file is saved. &lt;br /&gt;
&lt;br /&gt;
Lets click on the file Library.odb and click on the Open button at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
|Click on the Tables icon in the Database list on the left panel.&lt;br /&gt;
&lt;br /&gt;
Right click on the Books table &lt;br /&gt;
&lt;br /&gt;
Click on 'open'&lt;br /&gt;
&lt;br /&gt;
Keep the new window 'Books – Library – LibreOffice Base: Table Data View' in focus.&lt;br /&gt;
|Now we are in the Library Database. &lt;br /&gt;
&lt;br /&gt;
Let us click on the Tables icon in the Database list on the left panel. &lt;br /&gt;
&lt;br /&gt;
Notice that the Books table appears in the Tables list on the right panel.&lt;br /&gt;
&lt;br /&gt;
Let us now right click on the Books table. &lt;br /&gt;
&lt;br /&gt;
Notice the various options you can choose from here.&lt;br /&gt;
&lt;br /&gt;
Let us now click on 'open', to add data to this table.&lt;br /&gt;
&lt;br /&gt;
Alternately, we can also double click on the table name to open it.&lt;br /&gt;
&lt;br /&gt;
A new window opens with title 'Books – Library – LibreOffice Base: Table Data View'. &lt;br /&gt;
&lt;br /&gt;
Now we can start entering data into the Books table, by typing in values directly into each cell. &lt;br /&gt;
|-&lt;br /&gt;
|Enter the following rows of data into the Books table.&lt;br /&gt;
&lt;br /&gt;
Student can pause here to copy the data into his/her Base window.&lt;br /&gt;
&lt;br /&gt;
BookId field will autopopulate.&lt;br /&gt;
Start from title field. Use tabs to go to the next field.&lt;br /&gt;
&lt;br /&gt;
An Autobiography, Jawaharlal Nehru, 1975, Cambridge, 200&lt;br /&gt;
&lt;br /&gt;
Conquest of Self, Mahatma Gandhi, 1975, Orient, 150&lt;br /&gt;
&lt;br /&gt;
Merchant of Venice, William Shakespeare, 1980, Cambridge, 200&lt;br /&gt;
&lt;br /&gt;
Macbeth, William Shakespeare, 1980, Cambridge, 200&lt;br /&gt;
&lt;br /&gt;
Seven Summers, Mulk Raj Anand, 1985, Orient, 150&lt;br /&gt;
|Notice the Bookid column has 'AutoField', &lt;br /&gt;
&lt;br /&gt;
This means Base will assign ascending numbers automatically to each row of data that we  insert. &lt;br /&gt;
&lt;br /&gt;
Now, let us  input data into the cells, row by row, as shown on the screen.&lt;br /&gt;
|-&lt;br /&gt;
|Close the window.&lt;br /&gt;
|So, here we have 5 rows of sample data in our table Books. &lt;br /&gt;
&lt;br /&gt;
Let us close the window, by clicking the File menu on the top and then choosing Close.&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide Number 3&lt;br /&gt;
&lt;br /&gt;
Assignment: Create Members Table&lt;br /&gt;
&lt;br /&gt;
Fields and Field type&lt;br /&gt;
1. MemberId with Fieldtype Integer. Primary key&lt;br /&gt;
2. Name with Fieldtype Text &lt;br /&gt;
3. Phone with Fieldtype Text &lt;br /&gt;
|Here is an assignment for you. &lt;br /&gt;
&lt;br /&gt;
Create a Members table that will store information about each member, for example, member name, and phone number. &lt;br /&gt;
&lt;br /&gt;
Include the following three fields.&lt;br /&gt;
1. MemberId with Fieldtype Integer , and make this the primary key&lt;br /&gt;
&lt;br /&gt;
2. Name with Fieldtype Text&lt;br /&gt;
&lt;br /&gt;
3. Phone with Fieldtype Text&lt;br /&gt;
|-&lt;br /&gt;
|Go back to the main window, Click on Tables Icon on the Database List in the left and click on 'Create table in design view'.&lt;br /&gt;
&lt;br /&gt;
Type in Field name and Field type as follows. Use tab key.&lt;br /&gt;
&lt;br /&gt;
MemberId, Integer[INTEGER] Change the Field Properties in the bottom section. Change AutoValue from No to Yes.&lt;br /&gt;
&lt;br /&gt;
Name, Text[VARCHAR]&lt;br /&gt;
&lt;br /&gt;
Phone, Text[VARCHAR]&lt;br /&gt;
&lt;br /&gt;
Click on Save icon below the File menu. Enter 'Members' in the table name text box. Click ok button.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Close the window. &lt;br /&gt;
|Okay, when you are done, this is how the Members table will look like.&lt;br /&gt;
&lt;br /&gt;
Let us close this window.&lt;br /&gt;
|-&lt;br /&gt;
|In the main window, right click on Members table and click on open.&lt;br /&gt;
&lt;br /&gt;
Type in values as below:&lt;br /&gt;
&lt;br /&gt;
Ravi Kumar, 29488737&lt;br /&gt;
Nisha Sharma, 82383848&lt;br /&gt;
Jacob Robin, 88737433&lt;br /&gt;
Salma Aziz, 72383483&lt;br /&gt;
|Now let us add 4 sample members into the Members table now as shown on the screen , &lt;br /&gt;
&lt;br /&gt;
just the way we did for the Books table.&amp;lt;pause for 10 seconds&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Close the window.&lt;br /&gt;
|Once done, let us close this window.&lt;br /&gt;
|-&lt;br /&gt;
|Go to the main window, Click on Tables Icon on the Database List in the left and click on 'Create table in design view'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type in Field name and Field type as follows. Use tab key.&lt;br /&gt;
&lt;br /&gt;
IssueId, Integer[INTEGER] Change the Field Properties in the bottom section. Change AutoValue from No to Yes.&lt;br /&gt;
&lt;br /&gt;
BookId, Integer[INTEGER]&lt;br /&gt;
&lt;br /&gt;
MemberId, Integer[INTEGER]&lt;br /&gt;
&lt;br /&gt;
IssueDate, Date[DATE]&lt;br /&gt;
&lt;br /&gt;
ReturnDate, Date[DATE]&lt;br /&gt;
&lt;br /&gt;
ActualReturnDate, Date[DATE]&lt;br /&gt;
&lt;br /&gt;
CheckedIn Yes/No [Boolean]&lt;br /&gt;
&lt;br /&gt;
Click on Save icon below the File menu. Enter 'BooksIssued' in the table name text box and click ok button. &lt;br /&gt;
&lt;br /&gt;
In the last frame, show cursor movement as narration goes forward.&lt;br /&gt;
&lt;br /&gt;
Close the window. &lt;br /&gt;
|Now, let us go back to the main window and click on the Tables Icon again.&lt;br /&gt;
&lt;br /&gt;
And let us create the third table: BooksIssued.&lt;br /&gt;
&lt;br /&gt;
When done, the BooksIssued table will have the following fields:&lt;br /&gt;
&lt;br /&gt;
IssueId, Fieldtype Integer. which will be the primary key&lt;br /&gt;
BookId,    Fieldtype   Integer&lt;br /&gt;
MemberId    Fieldtype   Integer  &lt;br /&gt;
IssueDate    Fieldtype   Date  &lt;br /&gt;
ReturnDate    Fieldtype   Date  &lt;br /&gt;
ActualReturnDate     Fieldtype   Date  &lt;br /&gt;
And CheckedIn     Fieldtype   Yes/No Boolean&lt;br /&gt;
|-&lt;br /&gt;
|In the main window, rightclick on BooksIssued table and click on open.&lt;br /&gt;
&lt;br /&gt;
Type in the following values. The IssueId Field will autopopulate itself. Start typing from the BookId field:&lt;br /&gt;
&lt;br /&gt;
0, 1, 1-6-11, 1-7-11, tab key, No&lt;br /&gt;
3, 0, 2-6-11, 2-7-11, tab key, No&lt;br /&gt;
4, 2, 1-5-11, 2-6-11, 3-6-11, Yes&lt;br /&gt;
|Okay, we have created the BooksIssued table, &lt;br /&gt;
&lt;br /&gt;
And now let us add the following sample data into it as you see on the screen.&lt;br /&gt;
&lt;br /&gt;
While this may not make absolute sense right now, we will soon understand what’s happening.&lt;br /&gt;
|-&lt;br /&gt;
|Go to the LibreOffice Base main window and point to the three tables.&lt;br /&gt;
|Now, we have the three tables in our Library database, with sample data also. &lt;br /&gt;
&lt;br /&gt;
Let us now learn about defining relationships in the database.&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide Number 4&lt;br /&gt;
Define and Create relationships&lt;br /&gt;
Show the 3 tables books, members and booksissued as tables and cells. &lt;br /&gt;
&lt;br /&gt;
Move the cursor among each table and field to follow narration. &lt;br /&gt;
&lt;br /&gt;
We can also circle a particular region or word in the slide to bring attention to the end-user.&lt;br /&gt;
&lt;br /&gt;
Point cursor at the BooksIssued table&lt;br /&gt;
|So we created three tables to store three different sets of information. &lt;br /&gt;
&lt;br /&gt;
Books, Members and Issue of Books to Members. &lt;br /&gt;
&lt;br /&gt;
Now we also set up columns to uniquely identify each book, each member and each book issue in these three tables. &lt;br /&gt;
&lt;br /&gt;
They are the Primary Keys. &lt;br /&gt;
&lt;br /&gt;
One of the various advantages of a primary key is that it helps to establish relationships between tables. &lt;br /&gt;
&lt;br /&gt;
But why do we need relationships? &lt;br /&gt;
&lt;br /&gt;
Let us look at the BooksIssued table. Here, we see the BookId and MemberId fields.&lt;br /&gt;
&lt;br /&gt;
They can have any value in the BooksIssued table. &lt;br /&gt;
&lt;br /&gt;
But, they will need to correspond to the same values as we have in the Books and Members tables respectively.&lt;br /&gt;
&lt;br /&gt;
So if the book, Macbeth, has its BookId as 3 in the Books table, &lt;br /&gt;
&lt;br /&gt;
Then by using 3 in the BookId of the BooksIssued table, we will still be referring to the same book. &lt;br /&gt;
&lt;br /&gt;
So to explicitly connect these two tables, we will still need to link them someway. &lt;br /&gt;
&lt;br /&gt;
Also, for example,&lt;br /&gt;
How will you establish that 'Macbeth' was issued to Ravi Kumar on 2nd June 2011? &lt;br /&gt;
&lt;br /&gt;
Or how will you ensure that a book is issued to only members of the library and not anyone else?&lt;br /&gt;
&lt;br /&gt;
All of these can be achieved by setting up relationships, which helps interlink the data. &lt;br /&gt;
&lt;br /&gt;
We will need to force Base to use values from the Books table and the Members table only, by linking the appropriate fields. &lt;br /&gt;
&lt;br /&gt;
Let us see how.&lt;br /&gt;
|-&lt;br /&gt;
|Go back to the LibreOffice Base main window. Click on Tools and click on Relationships&lt;br /&gt;
This opens a small pop up window, select top most table and click on add button, repeat for the other two tables also. &lt;br /&gt;
&lt;br /&gt;
Close the pop up window.  &lt;br /&gt;
&lt;br /&gt;
By click, drag and drop, space out the three tables well.&lt;br /&gt;
&lt;br /&gt;
Click on the BookId in the Books table and drag and drop it on the BookId in the BooksIssued table.&lt;br /&gt;
Point cursor on the line.&lt;br /&gt;
&lt;br /&gt;
Click on the MemberId in the Members table and drag and drop it in the BooksIssued table.&lt;br /&gt;
|In the LibreOffice Base main window, let us click on Tools and then click on Relationships. &lt;br /&gt;
&lt;br /&gt;
This opens a small pop up window, &lt;br /&gt;
&lt;br /&gt;
Here we will select the top most table and click on the add button, and repeat for the other two tables also. &lt;br /&gt;
&lt;br /&gt;
Close the pop up window. &lt;br /&gt;
&lt;br /&gt;
Now we see the three tables Books, BooksIssued and Members in a line. &lt;br /&gt;
&lt;br /&gt;
By clicking, dragging and dropping, let us introduce more space among the tables.&lt;br /&gt;
&lt;br /&gt;
Now, let us click on the BookId in the Books table and drag and drop it on the BookId in the BooksIssued table. &lt;br /&gt;
&lt;br /&gt;
Notice a line connecting these two field names. So there, we have set up one relationship! &lt;br /&gt;
&lt;br /&gt;
Let us repeat the same for MemberId. &lt;br /&gt;
&lt;br /&gt;
Click on the MemberId in the Members table and drag and drop it in the BooksIssued table. &lt;br /&gt;
&lt;br /&gt;
You can see that we just created two relationships. &lt;br /&gt;
&lt;br /&gt;
And, this is how we can establish relationships &lt;br /&gt;
&lt;br /&gt;
And therefore interlink meaningful data stored in various tables in the relational database.&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide Number 4&lt;br /&gt;
1. Adding data to a table&lt;br /&gt;
2. Define and create relationships&lt;br /&gt;
|This brings us to the end of this tutorial on Tables and Relationships in LibreOffice&lt;br /&gt;
To summarize, we learned how to: &lt;br /&gt;
1. Add data to a table&lt;br /&gt;
2. Define and create relationships&lt;br /&gt;
|-&lt;br /&gt;
|Acknowledgement Slide&lt;br /&gt;
|Spoken Tutorial Project is a part of the Talk to a Teacher project, supported by the National Mission on Education through ICT, MHRD, Government of India. This project is co-ordinated by http://spoken-tutorial.org. More information on the same is available at the following link http://spoken-tutorial.org/NMEICT-Intro. This script has been contributed by Priya Suresh, DesiCrew Solutions. signing off. Thanks for joining.&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>