natural_key: Create SQL string for joining on matching natural keys
Description
Create string with SQL expressions for WHERE clause
to join two tables on the given columns.
Usage
natural_key(table_names, key_columns)
Arguments
table_names
[character(2)]
Name of data base tables to be joined.
key_columns
[character(1:Inf)]
Names of key columns in both tables.
Value
Character string to be used in SQL statement.
Details
The names of tables and key columns must be valid SQL identifiers.
They are validated to conform to
the regular expression returned by valid_identifier_regex.
The SQL string is created in 3 steps:
Combine table names with key names, eg, "PRL.FLIGHT_NR".