<?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%2FC3%2FCreate-tables%2FEnglish</id>
		<title>LibreOffice-Suite-Base/C3/Create-tables/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%2FC3%2FCreate-tables%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C3/Create-tables/English&amp;action=history"/>
		<updated>2026-04-21T14:40:58Z</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/C3/Create-tables/English&amp;diff=323&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{| border=1 !Visual Cues !Narration |- |Show Slide Number 1  Spoken tutorial on LibreOffice Base: Create Tables  Learning Objectives  Create a Table by a) Creating Views  b) Usin…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LibreOffice-Suite-Base/C3/Create-tables/English&amp;diff=323&amp;oldid=prev"/>
				<updated>2012-11-27T14:56:08Z</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: Create Tables  Learning Objectives  Create a Table by a) Creating Views  b) Usin…&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: Create Tables&lt;br /&gt;
&lt;br /&gt;
Learning Objectives&lt;br /&gt;
&lt;br /&gt;
Create a Table by&lt;br /&gt;
a) Creating Views &lt;br /&gt;
b) Using the Copy method&lt;br /&gt;
|Welcome to the Spoken tutorial on LibreOffice Base.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will learn how to &lt;br /&gt;
&lt;br /&gt;
Create a Table by&lt;br /&gt;
a) Creating Views and&lt;br /&gt;
b) Using the Copy method&lt;br /&gt;
|-&lt;br /&gt;
|In the Base main window,&lt;br /&gt;
&lt;br /&gt;
Click on Tables on the left panel, &lt;br /&gt;
&lt;br /&gt;
Just point on the Create View option. Don’t click.&lt;br /&gt;
|Lets go to our Library database. &lt;br /&gt;
&lt;br /&gt;
Let us click on the Tables icon on the left panel. &lt;br /&gt;
&lt;br /&gt;
On the right panel, we see three ways of creating a table. &lt;br /&gt;
&lt;br /&gt;
We will go through the ‘Create View’ option now.&lt;br /&gt;
|-&lt;br /&gt;
|Show slide number 2&lt;br /&gt;
What is a View?&lt;br /&gt;
Similar to a table, but does not hold data&lt;br /&gt;
&lt;br /&gt;
Defined as a Query Expression (needs to appear as narration goes forward)&lt;br /&gt;
&lt;br /&gt;
When viewed, it has columns and rows of data just like a table. (needs to appear as narration goes forward)&lt;br /&gt;
Use views to allow limited access or hide the structure and names of the underlying table columns and table data. (needs to appear as narration goes forward)&lt;br /&gt;
Example: View that lists members only and without their phone numbers&lt;br /&gt;
|Before that, let us learn about Views. What is a View?&lt;br /&gt;
&lt;br /&gt;
A view is similar to a table, but it does not hold the data. &lt;br /&gt;
&lt;br /&gt;
It is defined as a Query Expression, which is simply retrieval of data from tables or other views from the database. &lt;br /&gt;
&lt;br /&gt;
So, when viewed, it has columns and rows of data just like a table.&lt;br /&gt;
&lt;br /&gt;
Views can be used to allow limited access &lt;br /&gt;
&lt;br /&gt;
Or hide the structure and names of the underlying table columns and table data.&lt;br /&gt;
&lt;br /&gt;
For example, we can create a simple view which will list all the members of the library, &lt;br /&gt;
&lt;br /&gt;
And we can leave out their phone numbers to maintain confidentiality. &lt;br /&gt;
&lt;br /&gt;
Here the underlying table would be Members. &lt;br /&gt;
&lt;br /&gt;
Other users of the Library database can be allowed to access this view but  not the Members table. &lt;br /&gt;
&lt;br /&gt;
In this way, they can only see the names of the members and not their phone numbers.&lt;br /&gt;
|-&lt;br /&gt;
|Go back to the Base main window,&lt;br /&gt;
click on the ‘Create View’ on the right.&lt;br /&gt;
|Okay, let us go back to the main Base window, and create this view.&lt;br /&gt;
&lt;br /&gt;
Let us click on ‘Create View’ on the right panel.&lt;br /&gt;
|-&lt;br /&gt;
|Click on Members &lt;br /&gt;
&lt;br /&gt;
Click on close.&lt;br /&gt;
|We see a new window called the View Design and a popup window that says Add tables.&lt;br /&gt;
&lt;br /&gt;
Let us click on Members &lt;br /&gt;
&lt;br /&gt;
And close this popup window.&lt;br /&gt;
|-&lt;br /&gt;
|Double click on the MemberId and Name fields.&lt;br /&gt;
&lt;br /&gt;
Click on the empty cell in the Sort row under the Name column in the bottom section. &lt;br /&gt;
Click on ‘ascending’&lt;br /&gt;
|Now, we are in the View design window. &lt;br /&gt;
&lt;br /&gt;
And we will double click on the MemberId and Name fields. &lt;br /&gt;
&lt;br /&gt;
Adding the Id field is always useful &lt;br /&gt;
&lt;br /&gt;
Because this helps us to join this view with any other related table, for example the BooksIssued Table.&lt;br /&gt;
&lt;br /&gt;
We can add functions, criteria and sort any way we want. &lt;br /&gt;
&lt;br /&gt;
But for now, we will sort the member names in ascending order.&lt;br /&gt;
&lt;br /&gt;
For this, let us click on the empty cell in the Sort row under the Name column in the bottom section. &lt;br /&gt;
&lt;br /&gt;
And then click on ‘ascending’.&lt;br /&gt;
|-&lt;br /&gt;
|Click on the Save icon.&lt;br /&gt;
&lt;br /&gt;
Type in: ‘View: Members Name Only’ &lt;br /&gt;
&lt;br /&gt;
Click on Ok.&lt;br /&gt;
&lt;br /&gt;
Click on the Edit menu at the top &lt;br /&gt;
&lt;br /&gt;
and then click on Run Query&lt;br /&gt;
|Let us save our first view. &lt;br /&gt;
&lt;br /&gt;
Here, let us type a descriptive name for this view: View: Members Name Only. &lt;br /&gt;
&lt;br /&gt;
And let us click on the Ok button. &lt;br /&gt;
&lt;br /&gt;
To see the underlying data, let us click on the Edit menu at the top &lt;br /&gt;
&lt;br /&gt;
And then click on Run Query at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
|Point mouse over the top section over the data.&lt;br /&gt;
&lt;br /&gt;
Close the window.&lt;br /&gt;
|And we see a new section at the top that lists all the members of the Library in ascending order. &lt;br /&gt;
&lt;br /&gt;
Note that we don’t see any phone numbers. &lt;br /&gt;
&lt;br /&gt;
And there is our simple view. &lt;br /&gt;
&lt;br /&gt;
We can create and design views according to our requirements.&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide number 3&lt;br /&gt;
Assignment:&lt;br /&gt;
1. Create a View of Books Issued to Members and only those books that are not checked in. &lt;br /&gt;
2. Include in the view, the following fields: Book Titles, Member Names, Issue Date, and Return Date. &lt;br /&gt;
3. Name the view as ‘View: List of Books not checked in’.&lt;br /&gt;
|Before moving on to the next topic, here is an assignment. &lt;br /&gt;
&lt;br /&gt;
Create a View of Books Issued to Members and only those books that are not checked in. &lt;br /&gt;
&lt;br /&gt;
Include in the view, the following fields: Book Titles, Member Names, Issue Date, and Return Date. &lt;br /&gt;
&lt;br /&gt;
Name the view as ‘View: List of Books not checked in’.&lt;br /&gt;
|-&lt;br /&gt;
|Show slide number 4:&lt;br /&gt;
Create Tables by Copy method&lt;br /&gt;
&lt;br /&gt;
Table name: Media&lt;br /&gt;
Field names: &lt;br /&gt;
MediaId, &lt;br /&gt;
MediaType, &lt;br /&gt;
Title, &lt;br /&gt;
Publishyear&lt;br /&gt;
&lt;br /&gt;
Show cursor movement on slide as narration goes forward.&lt;br /&gt;
|Okay, next let us learn to create tables by using the copy method.&lt;br /&gt;
&lt;br /&gt;
This is an easy way of creating tables, provided we know that the table structures are going to be very similar.&lt;br /&gt;
&lt;br /&gt;
For this, let us assume that our Library has DVDs and CDs. &lt;br /&gt;
&lt;br /&gt;
And we can store this data in a new table called Media. &lt;br /&gt;
&lt;br /&gt;
A CD or a DVD can have a title and a publish-year for example. &lt;br /&gt;
&lt;br /&gt;
In order to distinguish between an audio and a video, we will introduce a MediaType field. &lt;br /&gt;
&lt;br /&gt;
Now since the Books table has almost similar fields, we can copy-paste the Books table, &lt;br /&gt;
&lt;br /&gt;
And then we can rename the fields and the table name in the process. &lt;br /&gt;
&lt;br /&gt;
We’ll see how.&lt;br /&gt;
|-&lt;br /&gt;
|Go to Base main window. &lt;br /&gt;
&lt;br /&gt;
Right click on Books table. &lt;br /&gt;
Click on copy &lt;br /&gt;
and then right click on it &lt;br /&gt;
&lt;br /&gt;
Click on Paste.&lt;br /&gt;
|Let us go back to the main Base window &lt;br /&gt;
&lt;br /&gt;
Here let us right click on the Books table, &lt;br /&gt;
&lt;br /&gt;
And we will see the copy option. Let us click on it; &lt;br /&gt;
&lt;br /&gt;
And then right click on it. &lt;br /&gt;
&lt;br /&gt;
Notice the various options here. There is paste and there is also a Paste Special.&lt;br /&gt;
&lt;br /&gt;
We can use it copy and paste in a specific format.&lt;br /&gt;
&lt;br /&gt;
Possible formats are Formatted text, HTML or a database table. &lt;br /&gt;
&lt;br /&gt;
So we can choose the database table here,&lt;br /&gt;
&lt;br /&gt;
Or we can choose Paste from the right click menu.&lt;br /&gt;
|-&lt;br /&gt;
|Type in Media in the table name text box&lt;br /&gt;
Click on the Definition and Data. &lt;br /&gt;
&lt;br /&gt;
Click on the Next button.&lt;br /&gt;
|This opens a wizard and in this window, &lt;br /&gt;
&lt;br /&gt;
We will first rename our table by typing in ‘Media’ against the table name.&lt;br /&gt;
&lt;br /&gt;
In the options, we will click on Definition and Data. &lt;br /&gt;
&lt;br /&gt;
Let us click on the Next button.&lt;br /&gt;
|-&lt;br /&gt;
|Move bookId, title and publishyear to the right.&lt;br /&gt;
&lt;br /&gt;
Click on the Next button.&lt;br /&gt;
|In the next window, we will add the columns. &lt;br /&gt;
&lt;br /&gt;
Let us choose BookId, title and publish-year for this demonstration. &lt;br /&gt;
&lt;br /&gt;
Now we will select these fields on the left and use the single arrow button to move them to the right side&lt;br /&gt;
&lt;br /&gt;
and click on the Next button.&lt;br /&gt;
|-&lt;br /&gt;
|Rename Bookid to MediaId&lt;br /&gt;
&lt;br /&gt;
Click on the Create button.&lt;br /&gt;
|In the next window, we see our columns. &lt;br /&gt;
&lt;br /&gt;
Here we can rename the fields and change their data types. &lt;br /&gt;
&lt;br /&gt;
We will rename the BookId to MediaId.&lt;br /&gt;
&lt;br /&gt;
And we will click on the Create button.&lt;br /&gt;
|-&lt;br /&gt;
|In the Base main window, &lt;br /&gt;
Point to the Media table,&lt;br /&gt;
then right click on Media table, click on edit.&lt;br /&gt;
|In the main Base window, there is our new Media table. &lt;br /&gt;
&lt;br /&gt;
Let us now edit the table to add a new field MediaType  which will hold the audio or the video type information.&lt;br /&gt;
|-&lt;br /&gt;
|Click on cell below Publishyear &lt;br /&gt;
&lt;br /&gt;
Type ‘MediaType’ as Field Name and then choose Text as Field Type.&lt;br /&gt;
&lt;br /&gt;
Click on Save icon.&lt;br /&gt;
|Now we are in the table design window.&lt;br /&gt;
&lt;br /&gt;
Here let us introduce MediaType as the last column. &lt;br /&gt;
&lt;br /&gt;
Let us click on the cell below Publishyear &lt;br /&gt;
&lt;br /&gt;
And enter ‘MediaType’ as Field Name and then choose Text as Field Type.&lt;br /&gt;
&lt;br /&gt;
Now let us save the table design and we are done. &lt;br /&gt;
&lt;br /&gt;
There, we just created our Media table by using the Copy method.&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide number 5&lt;br /&gt;
Assignment:&lt;br /&gt;
1. Create a table. Use the  ‘Use Wizard to Create table’ method.&lt;br /&gt;
2. Use the ‘Assets’ sample table and rename it to ‘AssetsCopy’.&lt;br /&gt;
3. Explore the various options in this method.&lt;br /&gt;
|Okay, here is another assignment. &lt;br /&gt;
&lt;br /&gt;
Create a table using the ‘Use Wizard to Create table’ method. &lt;br /&gt;
&lt;br /&gt;
Here, use the ‘Assets’ sample table and rename it to ‘AssetsCopy’. &lt;br /&gt;
&lt;br /&gt;
And explore the various options in this method.&lt;br /&gt;
|-&lt;br /&gt;
|Show Slide Number 6&lt;br /&gt;
&lt;br /&gt;
Summary &lt;br /&gt;
&lt;br /&gt;
Create a Table by&lt;br /&gt;
a) Creating Views &lt;br /&gt;
b) Using the Copy method&lt;br /&gt;
|This brings us to the end of this tutorial on Creating Tables in LibreOffice Base&lt;br /&gt;
&lt;br /&gt;
To summarize, we learned how to  &lt;br /&gt;
Create a Table by&lt;br /&gt;
a) Creating Views and&lt;br /&gt;
b) Using the Copy method&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 Pvt Ltd. signing off. Thanks for joining.&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>