Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Database activity.

Database activity: Difference between revisions

From MoodleDocs
(→‎See also: link to a screencast)
mNo edit summary
 
(65 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{Databases}}
{{Activities}}
{{Moodle 1.6}}
__NOTOC__
==What is the Database activity?==
The Database activity allows the teacher and/or students to build, display and search a bank of record entries about any conceivable topic. The format and structure of these entries can be almost unlimited, including images, files, URLs, numbers and text amongst other things.  


The '''Database module''' allows the teacher and/or students to build, display and search a bank of record entries about any conceivable topic. The format and structure of these entries can be almost unlimited, including images, files, URLs, numbers and text amongst other things. You may be familiar with similar technology from building Microsoft Access or Filemaker databases.
{{MediaPlayer | url = https://youtu.be/HkKUojvm6Ag | desc = Overview of the Database activity}}
==How is it set up?==
#In a course, with the editing turned on, choose 'Database' from the activity chooser.
#Give it a name and, if needed, a description.
#Expand the other sections to define the settings you want, in particular the Entries section.
#Click Save and Display
#Create a new field from the dropdown, repeating as necessary, or click the link choose a defined set to import an existing preset.
#Click the Templates tab to edit and save templates. For more help, see [[Database templates]]
==How does it work?==
===Student view===
Students click on the Database icon in the course to access it and add an entry.


== How to use the database module ==
They can usually see entries individually (View single) and in a list (List view) and are able to search entries.
* The first task is to [[Adding/editing_a_database|add the database]]. You will be asked to give it a name, provide some text explaining its intended purpose to users and set a few other options.
===Teacher view===
* Next you define the kind of [[Fields]] that define the information you wish to collect. For example a database of famous paintings may have a [[picture field]] called ''painting'', for uploading an image file showing the painting, and two [[text fields]] called ''artist'' and ''title'' for the name of the artist and the painting.
Teachers additionally see the set up tabs and can edit,delete, approve/unapprove entries as required.
* It is then optional to edit the [[Templates|database templates]] to alter the way in which the database displays entries.
==More information==
* Note that if you later edit the fields in the databases you must use the [[Reset template button]], or manually edit the template, to ensure the new fields are added to the display
* [[Database activity settings|Database settings]]
* Finally the [[Teacher]] and/or [[Students]] can start entering data and (optionally) commenting on and grading other submissions. These entries can be [[viewed alone]], [[viewed as a list]] or [[searched and sorted]].
* [[Building Database]]
* [[Database templates]]
* [[Using Database]]
* [[Database activity FAQ]]


== Example databases ==
[[Category:Database activity module]]


Moodle.org has three good examples of the database module in action:
[[de:Datenbank]]
 
[[es:Base_de_datos_%28m%C3%B3dulo%29]]
* [http://moodle.org/mod/data/view.php?id=6140 Moodle Buzz], a database of the titles, authors and web links to news articles mentioning Moodle
[[eu:Datu-basea]]
* [http://moodle.org/mod/data/view.php?d=26 Themes], a database with screenshots, download links and user comments about Moodle [[Themes|themes]]
[[fr:Base de données]]
* [http://moodle.org/mod/data/view.php?d=13 Modules and plugins], a database containing a variety of web links (download, documentation, discussion) and info (maintainer, module type, requirements) about the modular components of Moodle, including those created by third parties.
[[ja:データベースモジュール]]
 
== Creative uses ==
 
You could use the database module to:
 
* allow collaboration on building a collection of web links/books/journal references related to a particular subject
* display student created photos/posters/websites/poems for peer comment and review
* gather comments and votes on a shortlist of potential logos/mascot names/project ideas
* ...
 
:'''''Note:''' Please don't confuse this [[Adding resources and activities | activity type]] with Moodle's underlying SQL database, which stores all of the information used in Moodle courses and is only of interest to Moodle [[Administrators]].''
 
== See also ==
 
* [[Glossary module]], which performs a similar though more specialised, text-based role and is also available for previous versions of Moodle.
* [http://treadwell.cce.cornell.edu/moodle_doc/database_moodle/index.html a screencast introducing the Database Module and walking through creating a database]
[[Category:Teacher]]
[[category:Modules]]

Latest revision as of 14:53, 13 August 2020


What is the Database activity?

The Database activity allows the teacher and/or students to build, display and search a bank of record entries about any conceivable topic. The format and structure of these entries can be almost unlimited, including images, files, URLs, numbers and text amongst other things.

Overview of the Database activity

How is it set up?

  1. In a course, with the editing turned on, choose 'Database' from the activity chooser.
  2. Give it a name and, if needed, a description.
  3. Expand the other sections to define the settings you want, in particular the Entries section.
  4. Click Save and Display
  5. Create a new field from the dropdown, repeating as necessary, or click the link choose a defined set to import an existing preset.
  6. Click the Templates tab to edit and save templates. For more help, see Database templates

How does it work?

Student view

Students click on the Database icon in the course to access it and add an entry.

They can usually see entries individually (View single) and in a list (List view) and are able to search entries.

Teacher view

Teachers additionally see the set up tabs and can edit,delete, approve/unapprove entries as required.

More information