18/72
\begin{frame}
  \frametitle{Eliminating Tables}

  \begin{center}
    \scalebox{.92}{
    \begin{tikzpicture}[every edge/.style={link}]
      \node[entity] (customer) {branch};
      \node[attribute] (id) [above left of=customer,node distance=1.7cm,shift={(3mm,-1mm)}] {\key{name}} edge (customer);
      \node[attribute] (name) [above of=customer,node distance=1.1cm,xshift=7mm] {city} edge (customer);

      \node[entity,right of=customer, node distance=6cm] (account) {account};
      \node[attribute] (account-number) [above of=account,node distance=1.2cm] {\key{number}} edge (account);
      \node[attribute] (balance) [right of=account,node distance=2.3cm,yshift=4mm] {balance} edge (account);

      \node[relationship] (does) at ($(customer)!.5!(account)$) {account-of} edge node [above,pos=.6] {$1\sldots 1$} (customer) edge node [above,pos=.6] {$0\sldots *$} (account);
    \end{tikzpicture}}
  \end{center}

  \pause
  \begin{exampleblock}{Basic translation}
  \centering{\footnotesize\ttfamily
    \hspace*{-.9ex}\colorbox{rellight}{%
      \begin{tabular}[t]{|r|r|}
        \multicolumn{2}{c}{branch}        \\ \hline
        \hd{\key{name}} & \hd{city} \\ \hline 
        branch1 & Amsterdam  \\
        branch2 & Utrecht \\
        \hline
      \end{tabular}%
    }\,%
  \pause
    \colorbox{rellight}{%
      \begin{tabular}[t]{r|r|}
        \multicolumn{2}{c}{account-of}        \\ \hline
        \hd{\parbox{1.5cm}{\key{number}\\[-.5ex]$\to$account\smallskip}} & \hd{\parbox{1.2cm}{\key{name}\\[-.5ex]$\to$branch}} \\ \hline 
        83828 & branch1  \\
        29281 & branch2 \\
        \hline
      \end{tabular}%
    }\,%
  \pause
    \colorbox{rellight}{%
      \begin{tabular}[t]{r|r|}
        \multicolumn{2}{c}{account}        \\ \hline
        \hd{\key{number}} & \hd{balance} \\ \hline 
        83828 & 125  \\
        29281 & 1000 \\
        \hline
      \end{tabular}%
    }}
  \end{exampleblock}
  \pause

  \begin{exampleblock}{Optimised translation}
  \centering{\footnotesize\ttfamily
    \colorbox{rellight}{%
      \begin{tabular}[t]{|r|r|}
        \multicolumn{2}{c}{branch}        \\ \hline
        \hd{\key{name}} & \hd{city} \\ \hline 
        branch1 & Amsterdam  \\
        branch2 & Utrecht \\
        \hline
      \end{tabular}%
    }~%
    \colorbox{rellight}{%
      \begin{tabular}[t]{|r|r|r|}
        \multicolumn{3}{c}{account}        \\ \hline
        \hd{name$\to$branch} & \hd{\key{number}} & \hd{balance} \\ \hline 
        branch1 & 83828 & 125  \\
        branch2 & 29281 & 1000 \\
        \hline
      \end{tabular}%
    }}
  \end{exampleblock}
\end{frame}