\documentclass{article}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{hyperref}
\pagestyle{headings}
\begin{document}
\part{How to use turba with multiple tables for a single address book}
For this How-To to work, you need at least Turba 4.2.22.

There are two different ways to configure Turba, depending on how you want to join your tables. In both cases, you need to customize the backends configuration in a \texttt{turba/config/backends.local.php}. You need to edit both the \texttt{'params'} and \texttt{'map'} setting of your backend.

Either:

<pre><code>
    'params' => array(
        .
        .
        .
        'table' => 'table1 t1, table2 t2',
        // The following will be added to there WHERE clause of the generated SQL query:
        'filter' => 't1.some\_field = t2.another\_field'
    ),
    'map' => array(
        .
        .
        .
        'firstname' => 't1.object\_firstname',
</code></pre>
Or:

<pre><code>
    'params' => array(
        .
        .
        .
        'table' => 'table1 t1 LEFT JOIN table2 t2 ON t1.some\_field = t2.another\_field',
    ),
    'map' => array(
        .
        .
        .
        'firstname' => 't1.object\_firstname',
</code></pre>
\end{document}
