I need to get selected records out of two identically structured tables, lets call them arc2001 and arc2002. Rather than run 2 SELECT on each of them, I need to do it at the same time. But every combination I've tried ends in errors or multiplied records. Most examples and questions here, as well as the explanations for the JOIN clauses apply more for parent-child relationships but I simply need all matching records from the 2 tables. In other words, can SELECT concatenate the tables and then extract out the records I want? (Back in the FP DOS days I did this, but that must have been a lifetime ago...) So if table arc2001 has 5 records for activity="RESTART" and the other table arc2002 has 7, I need to end up with 12 records holding the first 3 fields, something like this... (but this example failed and must need some more help, of course!)
Code:
SELECT field1, field2, field3 WHERE activity="RESTART" FROM arc2001 INNER JOIN arc2002 INTO TABLE arctotal