NAME

tdbcoin - coincident join, temporal database operator

SYNOPSIS

tdbcoin [ -123d ] file

DESCRIPTION

Tdbcoin reads triads from standard input of the same format as tdbjoin(1), and performs a coincident join between the input triad and the temporal relation stored in file created by tdbadd(1).

A coincident join finds the nearest neighbor, either before or after, of the triad along the valid time line.

The following options are recognized.
-n    where n is inversion 1, 2, or 3 of the triad to use to find the coincident entry. 1st inversion, the default, uses only the effective valid time of the triad to locate an entry in the file. 2nd inversion restricts the valid time line to entries matching the element of the triad, and then uses the effective valid time to locate

the nearest neighbor. 3rd inversion is the same as 2nd but uses the attribute of the triad to restrict the valid time line.
-d    Print the entry following the triad along the valid time line. The default is to print the preceding entry.

EXAMPLES

If task is a temporal relation containing a log of personal activity, the following prints the tasks you were working on when files in /bin were last modified.
9ls /bin |tdbcoin task

SEE ALSO

tdbadd(1), tdbjoin(1), 9ls(1)