| tdiffer | tables | tdiffer |
tdiffer -- Create a new table which is the difference of two tables.
tdiffer intable1 intable2 outtable colnam1 colnam2
This task creates an output table containing all the rows of the first table which do not match the rows in the second table. The first, second, and output tables are given by the task parameters intable1, intable2, and outtable respectively. The match is done on the columns specified by the task parameters colnam1 and colnam2. Other columns are ignored. If the two tables are disjoint, the output table will be a copy of the first table, except the rows will be sorted. If the first table is a subset of the second, the output table will be empty.
1. There are two tables, "targets.tab", containing a list of targets for observation, and "images.tab", containing a list of targets which have already been observed. Create a table named "new.tab" containing those targets which have not previously been observed:
tt> tdiffer targets.tab images.tab new.tab targetid targetid
This task was written by Bernie Simon.
Type "help tables opt=sys" for a higher-level description of the tables package.