It is possible in the Dataform module. See similar question and illustration down this forum at: https://moodle.org/mod/forum/discuss.php?d=245510#p1064673.
Itamar Tzadok
Mensagem enviada por Itamar Tzadok
Moodle in English -> Workshop -> Can't allocate -> Re: Can allocate
Each record entry has the DB record id which is unique not only in the activity but also between all Database activities on the site. But afaict the Database activity doesn't give you a way to display it.
The Dataform module allows you to display that entry id by the pattern [[entryid] ]. There also used to be a specialized field type which allowed you to store a unique id for each entry and also configure it to a certain size, prefix etc.
hth
This could be added as an add-on field to the Dataform module. The field could show course completion for the entry user, and allow the manager/admin to reset that completion. This would require a bit of development though.
If you can use add-ons you may want to consider the Dataform module. It has originated from the Database module but is much richer and more flexible. You can create multiple view templates and filters to display different subsets of entries and/or add/edit entries of particular types (e.g. the view for wood entry and the view for steel entry will display different subsets of fields).
hth