How in SQL could you "zip" together records in separate tables (à la the UNIX paste(1)
utility)?
For example, assuming two tables, A
and B
, like so:
A B
======== ====
Harkness unu
Costello du
Sato tri
Harper
Jones
How could you produce a single result set
NAME | NUM
===============
Harkness | unu
Costello | du
Sato | tri
Harper | NULL
Jones | NULL
?