The 'Name Field' option allows you to create a custom name field
for a table in MOT-SQL. It is always safe just to leave this field
blank.
Each table has a name field, which is the
field is used to represent that table when it is linked against other
tables. For instance, the name field of the Users table is the
Name field, so the Users field of the Permissions
table displays the name of the user linked by that field. By default,
the name field is simply the field with the lowest 'Display Order'
option. If you leave the 'Name Field' option blank, MOT will use this
default. So, in nearly all cases, you can simply leave this option
blank.
However, in a few cases, it is very handy to be able to either
specify a different field than the default or to have the name field
be some combination of other fields. For example, in a People
table, you may have Last Name and First Name fields so
that the table will properly sort the entries by Last Name.
However, neither the Last Name or First Name field would
serve well as a name field in this case. What you would really want
would be First Name + Last Name as the name field. The
Name Field option allows you to specify this behavior by
writing the correct MOT-SQL phrase. In this case, the phrase would
be: concat({People}.[First Name], ' ', {People}.[Last
Name])
(see the help section on MOT-SQL for information on how
to form MOT-SQL queries).