Kexi/Handbook/Introduction to Databases/Database and Spreadsheet: Difference between revisions
mNo edit summary |
(Corrected link) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<translate> | <translate> | ||
<!--T:1--> | |||
{{Note|Check content at https://www.zoho.com/creator/database-software-vs-spreadsheet.html}} | {{Note|Check content at https://www.zoho.com/creator/database-software-vs-spreadsheet.html}} | ||
===Database and Spreadsheet=== | ===Database and Spreadsheet=== <!--T:2--> | ||
It is very likely that you have already used spreadsheet applications like '''Calligra | <!--T:3--> | ||
It is very likely that you have already used spreadsheet applications like '''Calligra Sheets''', '''LibreOffice Calc''' or '''Microsoft Excel'''. If so, you will probably wonder: since both spreadsheets and databases have tables, why should I use the latter? | |||
<!--T:4--> | |||
While comparing spreadsheets and databases you may encounter the following issues which you will later see in greater detail. | While comparing spreadsheets and databases you may encounter the following issues which you will later see in greater detail. | ||
====How Is a Database Different From a Spreadsheet?==== | ====How Is a Database Different From a Spreadsheet?==== <!--T:5--> | ||
Gradually exceeding the capacity of a mobile phone, expand your table '''''Contacts''''' adding a column (field) Address. Add more telephone numbers (office, home) for each person and add surnames to names. To make it simpler we assume the following: | <!--T:6--> | ||
Gradually exceeding the capacity of a mobile phone, expand your table '''''Contacts''''' adding a column (field) '''''Address'''''. Add more telephone numbers (office, home) for each person and add surnames to names. To make it simpler we assume the following: | |||
<!--T:7--> | |||
* The table is limited to two people (obviously, there could be hundreds and thousands of them in a real database) | * The table is limited to two people (obviously, there could be hundreds and thousands of them in a real database) | ||
<!--T:8--> | |||
* There are no two persons with the same name and surname | * There are no two persons with the same name and surname | ||
<!--T:9--> | |||
{|class="tablecenter" style="border: 1px solid grey;" | {|class="tablecenter" style="border: 1px solid grey;" | ||
|+ ''Contacts table'' | |||
! '''Name and surname''' !! '''Tel''' !! '''Address''' | ! '''Name and surname''' !! '''Tel''' !! '''Address''' | ||
|- | |- | ||
Line 33: | Line 39: | ||
|} | |} | ||
<!--T:10--> | |||
Such a table can be made both in a spreadsheet and in a database. Using a spreadsheet is very easy, of course. What problems do we encounter at this stage? | Such a table can be made both in a spreadsheet and in a database. Using a spreadsheet is very easy, of course. What problems do we encounter at this stage? | ||
<span id="Referential data integrity"></span> | </translate><span id="Referential data integrity"></span><translate> | ||
====Referential data integrity==== <!--T:11--> | |||
<!--T:12--> | |||
Suppose you are using a spreadsheet and you need to change the address of at least one person. You have a small problem: you often have to change the address in many rows. For example, Joan takes three rows. A real problem will arise if you forget to change one of the rows - the address assigned to this person will be ambiguous, hence your data loses integrity. | Suppose you are using a spreadsheet and you need to change the address of at least one person. You have a small problem: you often have to change the address in many rows. For example, Joan takes three rows. A real problem will arise if you forget to change one of the rows - the address assigned to this person will be ambiguous, hence your data loses integrity. | ||
<!--T:13--> | |||
Moreover there is no simple way of deleting a chosen person from the table since you have to remember about deleting all rows related to him or her. | Moreover there is no simple way of deleting a chosen person from the table since you have to remember about deleting all rows related to him or her. | ||
<span id="Data redundancy"></span> | </translate><span id="Data redundancy"></span><translate> | ||
====Data redundancy==== | |||
====Data redundancy==== <!--T:14--> | |||
<!--T:15--> | |||
This is directly connected to the previous problem. In fields Name and surname and Address the same data is entered many times. This is typical of a spreadsheets' ineffective way of storing data because the database grows unnecessarily, thus requiring more computer resources (larger size of data and slower access). | This is directly connected to the previous problem. In fields Name and surname and Address the same data is entered many times. This is typical of a spreadsheets' ineffective way of storing data because the database grows unnecessarily, thus requiring more computer resources (larger size of data and slower access). | ||
How can you solve these problems with a database? You can split information into smaller chunks by creating an additional table Persons with only two columns: Name and surname and Address: | <!--T:16--> | ||
How can you solve these problems with a database? You can split information into smaller chunks by creating an additional table '''''Persons''''' with only two columns: '''''Name and surname''''' and '''''Address''''': | |||
<!--T:17--> | |||
{|class="tablecenter" style="border: 1px solid grey;" | {|class="tablecenter" style="border: 1px solid grey;" | ||
|+ ''Persons table'' | |||
! '''Name and surname''' !! '''Address''' | ! '''Name and surname''' !! '''Address''' | ||
|- | |- | ||
Line 58: | Line 72: | ||
|} | |} | ||
Each row in the table Persons corresponds to a single person. Table '''''Contacts''''' is from now on a relation to the table '''''Persons'''''. | <!--T:61--> | ||
Each row in the table '''''Persons''''' corresponds to a single person. Table '''''Contacts''''' is from now on a relation to the table '''''Persons'''''. | |||
<span id="Data_integrity_and_validity"></span> | </translate><span id="Data_integrity_and_validity"></span><translate> | ||
====Data integrity and validity==== | |||
====Data integrity and validity==== <!--T:18--> | |||
Note the way data is entered in the fields '''Name and surname''' and '''Address'''. People entering data can be fallible, sometimes even negligent. In our sample data we have both different sequence of entering name and surname (Joan Smith and Smith Joan; Adam and ADAM) and many more ways of entering the same address. Surely you can think of many other ways. | <!--T:19--> | ||
Note the way data is entered in the fields '''''Name and surname''''' and '''''Address'''''. People entering data can be fallible, sometimes even negligent. In our sample data we have both different sequence of entering name and surname (Joan Smith and Smith Joan; Adam and ADAM) and many more ways of entering the same address. Surely you can think of many other ways. | |||
The above problem shows that e.g. when searching the telephone number of a person whose address is "Western Gate 1, Warsaw" you will not get a full result. You will get only one row instead of three. Moreover You will also not find all the telephone numbers searching for the value "Joan Smith" in the field '''Name and surname''', because "Smith Joan" will not fit to "Joan Smith". | <!--T:20--> | ||
The above problem shows that e.g. when searching the telephone number of a person whose address is "Western Gate 1, Warsaw" you will not get a full result. You will get only one row instead of three. Moreover You will also not find all the telephone numbers searching for the value "Joan Smith" in the field '''''Name and surname''''', because "Smith Joan" will not fit to "Joan Smith". | |||
<!--T:21--> | |||
How can you solve these problems using a database? You can do this by changing the design of the table '''''Persons''''' by: | How can you solve these problems using a database? You can do this by changing the design of the table '''''Persons''''' by: | ||
# Dividing data in the field '''Name and surname''' into two separate fields: '''Name''' and '''Surname'''. | <!--T:22--> | ||
# Dividing data in the field '''Address''' into three separate fields: '''Street''', '''House number''' and '''City'''. | # Dividing data in the field '''Name and surname''' into two separate fields: '''''Name''''' and '''''Surname'''''. </translate> | ||
<translate> | |||
<!--T:59--> | |||
# Dividing data in the field '''''Address''''' into three separate fields: '''''Street''''', '''''House number''''' and '''''City'''''. </translate> | |||
<translate> | |||
<!--T:60--> | |||
# Guaranteeing data correctness: by ensuring that no fields are empty, e.g. you must always enter house number. | # Guaranteeing data correctness: by ensuring that no fields are empty, e.g. you must always enter house number. | ||
<!--T:23--> | |||
A modified table looks something like this: | A modified table looks something like this: | ||
<!--T:24--> | |||
{|class="tablecenter" style="border: 1px solid grey;" | {|class="tablecenter" style="border: 1px solid grey;" | ||
|+ ''Persons table'' | |||
! '''Name''' !! '''Surname''' !! '''Street''' !! '''House number''' !! '''City''' | ! '''Name''' !! '''Surname''' !! '''Street''' !! '''House number''' !! '''City''' | ||
|- | |- | ||
Line 89: | Line 114: | ||
|} | |} | ||
<!--T:25--> | |||
Thanks to introducing the condition required field we can be sure that the entered data is complete. In case of other tables you may of course allow omitting certain fields while entering data. | Thanks to introducing the condition required field we can be sure that the entered data is complete. In case of other tables you may of course allow omitting certain fields while entering data. | ||
<span id="Limiting data view"></span> | </translate><span id="Limiting data view"></span><translate> | ||
====Limiting data view==== | |||
====Limiting data view==== <!--T:26--> | |||
<!--T:27--> | |||
A spreadsheet displays all rows and columns of the table which is bothersome in case of very large data sheets. You may of course filter and sort rows in spreadsheets, however you must be extra careful while doing so. Spreadsheet users are in risk of forgetting that their data view has been filtered what can lead to mistakes. For example, while calculating sums you may think you have 100 rows of data while in fact there are 20 rows more hidden. | A spreadsheet displays all rows and columns of the table which is bothersome in case of very large data sheets. You may of course filter and sort rows in spreadsheets, however you must be extra careful while doing so. Spreadsheet users are in risk of forgetting that their data view has been filtered what can lead to mistakes. For example, while calculating sums you may think you have 100 rows of data while in fact there are 20 rows more hidden. | ||
<!--T:28--> | |||
If you want to work on a small subset of data, e.g. to send it for others to edit, you can copy and paste it to another spreadsheet and after editing paste the changed data back to the main spreadsheet. Such "manual" editing may cause data loss or incorrect calculations. | If you want to work on a small subset of data, e.g. to send it for others to edit, you can copy and paste it to another spreadsheet and after editing paste the changed data back to the main spreadsheet. Such "manual" editing may cause data loss or incorrect calculations. | ||
<!--T:29--> | |||
To limit the data view database applications offer queries, forms and reports. | To limit the data view database applications offer queries, forms and reports. | ||
A very practical way of limiting is the following extended version of the previously described table Persons: | <!--T:30--> | ||
A very practical way of limiting is the following extended version of the previously described table '''''Persons''''': | |||
<!--T:31--> | |||
{|class="tablecenter" style="border: 1px solid grey;" | {|class="tablecenter" style="border: 1px solid grey;" | ||
|+ ''Persons table'' | |||
! '''Name''' !! '''Surname''' !! '''Street''' !! '''House number''' !! '''City''' !! '''Income''' | ! '''Name''' !! '''Surname''' !! '''Street''' !! '''House number''' !! '''City''' !! '''Income''' | ||
|- | |- | ||
Line 111: | Line 143: | ||
|} | |} | ||
<!--T:32--> | |||
Let's assume that the newly introduced column Income contains confidential data. How can you share e.g. contact details of the persons with your coworkers but without revealing their income? It is possible if you share only a query and not the whole table. The query could select all columns except for the column Income. In database world such a query is often known as a view. | Let's assume that the newly introduced column Income contains confidential data. How can you share e.g. contact details of the persons with your coworkers but without revealing their income? It is possible if you share only a query and not the whole table. The query could select all columns except for the column Income. In database world such a query is often known as a view. | ||
<span id="Performance_and_capacity"></span> | </translate><span id="Performance_and_capacity"></span><translate> | ||
====Performance and capacity==== | |||
====Performance and capacity==== <!--T:33--> | |||
<!--T:34--> | |||
Your computer is probably quite fast, however you will easily see that it doesn't help with slow, large spreadsheets. Their low efficiency is first of all due to lack of indexes accelerating the process of data search (databases do offer them). Moreover if you use things like system clipboard, even copying data may become troublesome with time. | Your computer is probably quite fast, however you will easily see that it doesn't help with slow, large spreadsheets. Their low efficiency is first of all due to lack of indexes accelerating the process of data search (databases do offer them). Moreover if you use things like system clipboard, even copying data may become troublesome with time. | ||
<!--T:35--> | |||
Spreadsheets containing large data sets may take ages to open. A spreadsheet loads lots of data to the computer's memory while opening. Most of the data loaded are probably useless/unnecessary for you at the moment. Databases unlike spreadsheets load data from computer storage only when needed. | Spreadsheets containing large data sets may take ages to open. A spreadsheet loads lots of data to the computer's memory while opening. Most of the data loaded are probably useless/unnecessary for you at the moment. Databases unlike spreadsheets load data from computer storage only when needed. | ||
<!--T:36--> | |||
In most cases you will not have to worry how the database stores its data. This means that unlike spreadsheets, databases do not care about: | In most cases you will not have to worry how the database stores its data. This means that unlike spreadsheets, databases do not care about: | ||
<!--T:37--> | |||
* The sequence of rows since you can order the rows according to your needs. Moreover, you can view the same data in many views with different orders. | * The sequence of rows since you can order the rows according to your needs. Moreover, you can view the same data in many views with different orders. | ||
<!--T:38--> | |||
* The same goes for columns (fields) of the table. | * The same goes for columns (fields) of the table. | ||
Together with [[#Limiting data view|Limiting data view]] described in the previous paragraph these qualities constitute the advantage of databases. | <!--T:39--> | ||
Together with [[Special:myLanguage/Kexi/Handbook/Introduction_to_Databases/Database_and_Spreadsheet#Limiting data view|Limiting data view]] described in the previous paragraph these qualities constitute the advantage of databases. | |||
<span id="Data entry"></span> | </translate><span id="Data entry"></span><translate> | ||
====Data entry==== <!--T:40--> | |||
<!--T:41--> | |||
The latest editions of applications for creating spreadsheets enable you to design data-entry forms. Such forms are most useful if your data cannot be conveniently displayed in tabular view, e.g. if the text occupies too many rows or if all the columns do not fit on the screen. | The latest editions of applications for creating spreadsheets enable you to design data-entry forms. Such forms are most useful if your data cannot be conveniently displayed in tabular view, e.g. if the text occupies too many rows or if all the columns do not fit on the screen. | ||
<!--T:42--> | |||
In this case the very way the spreadsheet works is problematic. Fields for data entry are placed loosely within the spreadsheet and very often are not secure against the user's (intentional or accidental) intervention. | In this case the very way the spreadsheet works is problematic. Fields for data entry are placed loosely within the spreadsheet and very often are not secure against the user's (intentional or accidental) intervention. | ||
<span id="Reports"></span> | </translate><span id="Reports"></span><translate> | ||
====Reports==== | |||
====Reports==== <!--T:43--> | |||
<!--T:44--> | |||
Databases enable grouping, limiting and summing up data in a form of a report. Spreadsheets are usually printed in a form of small tables without fully automatic control over page divisions and the layout of fields. | Databases enable grouping, limiting and summing up data in a form of a report. Spreadsheets are usually printed in a form of small tables without fully automatic control over page divisions and the layout of fields. | ||
<span id="Programming"></span> | </translate><span id="Programming"></span><translate> | ||
====Programming==== | |||
====Programming==== <!--T:45--> | |||
<!--T:46--> | |||
Applications for creating databases often contain full programming languages. Newer spreadsheets have this capability too, however calculations come down to modifying the spreadsheet's fields and simple data copying, regardless of the relevance and integrity rules mentioned in previous paragraphs. | Applications for creating databases often contain full programming languages. Newer spreadsheets have this capability too, however calculations come down to modifying the spreadsheet's fields and simple data copying, regardless of the relevance and integrity rules mentioned in previous paragraphs. | ||
<!--T:47--> | |||
Data processing within a spreadsheet is usually done via a graphical user's interface which may slow down the data processing speed. Databases are capable of working in background, outside of graphical interfaces. | Data processing within a spreadsheet is usually done via a graphical user's interface which may slow down the data processing speed. Databases are capable of working in background, outside of graphical interfaces. | ||
<span id="Multiuse"></span> | </translate><span id="Multiuse"></span><translate> | ||
====Multiuse==== <!--T:48--> | |||
<!--T:49--> | |||
It is hard to imagine a multiuse of one spreadsheet. Even if it is technically possible in the case of the latest applications, it requires a lot of discipline, attention and knowledge from the users, and these cannot be guaranteed. | It is hard to imagine a multiuse of one spreadsheet. Even if it is technically possible in the case of the latest applications, it requires a lot of discipline, attention and knowledge from the users, and these cannot be guaranteed. | ||
<!--T:50--> | |||
A classical way to sharing data saved in a spreadsheet with other person is to send a file as a whole (usually using e-mail) or providing a spreadsheet file in a computer network. This way of work is ineffective for larger groups of people - data that could be needed in a particular time may be currently locked by another person. | A classical way to sharing data saved in a spreadsheet with other person is to send a file as a whole (usually using e-mail) or providing a spreadsheet file in a computer network. This way of work is ineffective for larger groups of people - data that could be needed in a particular time may be currently locked by another person. | ||
<!--T:51--> | |||
On the other hand, databases have been designed mainly with multiuser access in mind. Even for the simplest version locking at a particular table row's level is possible, which enables easy sharing of table data. | On the other hand, databases have been designed mainly with multiuser access in mind. Even for the simplest version locking at a particular table row's level is possible, which enables easy sharing of table data. | ||
<span id="Security"></span> | </translate><span id="Security"></span><translate> | ||
====Security==== | |||
====Security==== <!--T:52--> | |||
<!--T:53--> | |||
Securing a spreadsheet or its particular sections with a password is only symbolic activity. After providing a spreadsheet file in a computer network, every person being able to copy the file can try to break the password. It is sometimes not so hard as the password is stored in the same file as the spreadsheet. | Securing a spreadsheet or its particular sections with a password is only symbolic activity. After providing a spreadsheet file in a computer network, every person being able to copy the file can try to break the password. It is sometimes not so hard as the password is stored in the same file as the spreadsheet. | ||
<!--T:54--> | |||
Features for edit locking or copy locking of a spreadsheet (or its part) is equally easy to break. | Features for edit locking or copy locking of a spreadsheet (or its part) is equally easy to break. | ||
<!--T:55--> | |||
Databases (except these saved in a file instead of a server) do not need to be available in a single file. You're accessing them using a computer network, usually by providing a user name and a password. You are gaining access only to these areas (tables, forms or even selected rows and columns) which were assigned to you by setting appropriate access rights. | Databases (except these saved in a file instead of a server) do not need to be available in a single file. You're accessing them using a computer network, usually by providing a user name and a password. You are gaining access only to these areas (tables, forms or even selected rows and columns) which were assigned to you by setting appropriate access rights. | ||
<!--T:56--> | |||
Access rights can affect ability of data editing or only data reading. If any data is not available to you, it will not be even sent to your computer, so there is no possibility of making a copy of the data in such easy way as in case of spreadsheet files. | Access rights can affect ability of data editing or only data reading. If any data is not available to you, it will not be even sent to your computer, so there is no possibility of making a copy of the data in such easy way as in case of spreadsheet files. | ||
<!--T:57--> | |||
{{Prevnext2 | {{Prevnext2 | ||
|prevpage=Special:MyLanguage/Kexi/Handbook/Introduction_to_Databases/What_Is_a_Database%3F | |prevpage=Special:MyLanguage/Kexi/Handbook/Introduction_to_Databases/What_Is_a_Database%3F | ||
Line 175: | Line 233: | ||
}} | }} | ||
<!--T:58--> | |||
[[Category:Kexi]] | [[Category:Kexi]] | ||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
</translate> | </translate> |
Latest revision as of 09:06, 13 August 2012
Database and Spreadsheet
It is very likely that you have already used spreadsheet applications like Calligra Sheets, LibreOffice Calc or Microsoft Excel. If so, you will probably wonder: since both spreadsheets and databases have tables, why should I use the latter?
While comparing spreadsheets and databases you may encounter the following issues which you will later see in greater detail.
How Is a Database Different From a Spreadsheet?
Gradually exceeding the capacity of a mobile phone, expand your table Contacts adding a column (field) Address. Add more telephone numbers (office, home) for each person and add surnames to names. To make it simpler we assume the following:
- The table is limited to two people (obviously, there could be hundreds and thousands of them in a real database)
- There are no two persons with the same name and surname
Name and surname | Tel | Address |
---|---|---|
Joan Smith | 699 23 43 12 | Western Gate 1, Warsaw |
Adam Willson | 711 19 77 21 | London, Frogs Drive 5 |
Joan Smith | 110 98 98 00 | Western Gate 1 |
Smith Joan | 312 43 42 22 | Warsaw, Western Gate 1 |
ADAM Willson | 231 83 02 04 | Frogs Drive 5, London |
Such a table can be made both in a spreadsheet and in a database. Using a spreadsheet is very easy, of course. What problems do we encounter at this stage?
Referential data integrity
Suppose you are using a spreadsheet and you need to change the address of at least one person. You have a small problem: you often have to change the address in many rows. For example, Joan takes three rows. A real problem will arise if you forget to change one of the rows - the address assigned to this person will be ambiguous, hence your data loses integrity.
Moreover there is no simple way of deleting a chosen person from the table since you have to remember about deleting all rows related to him or her.
Data redundancy
This is directly connected to the previous problem. In fields Name and surname and Address the same data is entered many times. This is typical of a spreadsheets' ineffective way of storing data because the database grows unnecessarily, thus requiring more computer resources (larger size of data and slower access).
How can you solve these problems with a database? You can split information into smaller chunks by creating an additional table Persons with only two columns: Name and surname and Address:
Name and surname | Address |
---|---|
Joan Smith | Western Gate 1, Warsaw |
Adam Willson | Frogs Drive 5, London |
Each row in the table Persons corresponds to a single person. Table Contacts is from now on a relation to the table Persons.
Data integrity and validity
Note the way data is entered in the fields Name and surname and Address. People entering data can be fallible, sometimes even negligent. In our sample data we have both different sequence of entering name and surname (Joan Smith and Smith Joan; Adam and ADAM) and many more ways of entering the same address. Surely you can think of many other ways.
The above problem shows that e.g. when searching the telephone number of a person whose address is "Western Gate 1, Warsaw" you will not get a full result. You will get only one row instead of three. Moreover You will also not find all the telephone numbers searching for the value "Joan Smith" in the field Name and surname, because "Smith Joan" will not fit to "Joan Smith".
How can you solve these problems using a database? You can do this by changing the design of the table Persons by:
- Dividing data in the field Name and surname into two separate fields: Name and Surname.
- Dividing data in the field Address into three separate fields: Street, House number and City.
- Guaranteeing data correctness: by ensuring that no fields are empty, e.g. you must always enter house number.
A modified table looks something like this:
Name | Surname | Street | House number | City |
---|---|---|---|---|
Joan | Smith | Western Gate | 1 | Warsaw |
Adam | Willson | Frogs Drive | 5 | London |
Conditions | ||||
required field | required field | required field | required field | required field |
Thanks to introducing the condition required field we can be sure that the entered data is complete. In case of other tables you may of course allow omitting certain fields while entering data.
Limiting data view
A spreadsheet displays all rows and columns of the table which is bothersome in case of very large data sheets. You may of course filter and sort rows in spreadsheets, however you must be extra careful while doing so. Spreadsheet users are in risk of forgetting that their data view has been filtered what can lead to mistakes. For example, while calculating sums you may think you have 100 rows of data while in fact there are 20 rows more hidden.
If you want to work on a small subset of data, e.g. to send it for others to edit, you can copy and paste it to another spreadsheet and after editing paste the changed data back to the main spreadsheet. Such "manual" editing may cause data loss or incorrect calculations.
To limit the data view database applications offer queries, forms and reports.
A very practical way of limiting is the following extended version of the previously described table Persons:
Name | Surname | Street | House number | City | Income |
---|---|---|---|---|---|
Joan | Smith | Western Gate | 1 | Warsaw | 2300 |
Adam | Willson | Frogs Drive | 5 | London | 1900 |
Let's assume that the newly introduced column Income contains confidential data. How can you share e.g. contact details of the persons with your coworkers but without revealing their income? It is possible if you share only a query and not the whole table. The query could select all columns except for the column Income. In database world such a query is often known as a view.
Performance and capacity
Your computer is probably quite fast, however you will easily see that it doesn't help with slow, large spreadsheets. Their low efficiency is first of all due to lack of indexes accelerating the process of data search (databases do offer them). Moreover if you use things like system clipboard, even copying data may become troublesome with time.
Spreadsheets containing large data sets may take ages to open. A spreadsheet loads lots of data to the computer's memory while opening. Most of the data loaded are probably useless/unnecessary for you at the moment. Databases unlike spreadsheets load data from computer storage only when needed.
In most cases you will not have to worry how the database stores its data. This means that unlike spreadsheets, databases do not care about:
- The sequence of rows since you can order the rows according to your needs. Moreover, you can view the same data in many views with different orders.
- The same goes for columns (fields) of the table.
Together with Limiting data view described in the previous paragraph these qualities constitute the advantage of databases.
Data entry
The latest editions of applications for creating spreadsheets enable you to design data-entry forms. Such forms are most useful if your data cannot be conveniently displayed in tabular view, e.g. if the text occupies too many rows or if all the columns do not fit on the screen.
In this case the very way the spreadsheet works is problematic. Fields for data entry are placed loosely within the spreadsheet and very often are not secure against the user's (intentional or accidental) intervention.
Reports
Databases enable grouping, limiting and summing up data in a form of a report. Spreadsheets are usually printed in a form of small tables without fully automatic control over page divisions and the layout of fields.
Programming
Applications for creating databases often contain full programming languages. Newer spreadsheets have this capability too, however calculations come down to modifying the spreadsheet's fields and simple data copying, regardless of the relevance and integrity rules mentioned in previous paragraphs.
Data processing within a spreadsheet is usually done via a graphical user's interface which may slow down the data processing speed. Databases are capable of working in background, outside of graphical interfaces.
Multiuse
It is hard to imagine a multiuse of one spreadsheet. Even if it is technically possible in the case of the latest applications, it requires a lot of discipline, attention and knowledge from the users, and these cannot be guaranteed.
A classical way to sharing data saved in a spreadsheet with other person is to send a file as a whole (usually using e-mail) or providing a spreadsheet file in a computer network. This way of work is ineffective for larger groups of people - data that could be needed in a particular time may be currently locked by another person.
On the other hand, databases have been designed mainly with multiuser access in mind. Even for the simplest version locking at a particular table row's level is possible, which enables easy sharing of table data.
Security
Securing a spreadsheet or its particular sections with a password is only symbolic activity. After providing a spreadsheet file in a computer network, every person being able to copy the file can try to break the password. It is sometimes not so hard as the password is stored in the same file as the spreadsheet.
Features for edit locking or copy locking of a spreadsheet (or its part) is equally easy to break.
Databases (except these saved in a file instead of a server) do not need to be available in a single file. You're accessing them using a computer network, usually by providing a user name and a password. You are gaining access only to these areas (tables, forms or even selected rows and columns) which were assigned to you by setting appropriate access rights.
Access rights can affect ability of data editing or only data reading. If any data is not available to you, it will not be even sent to your computer, so there is no possibility of making a copy of the data in such easy way as in case of spreadsheet files.