I have the following code where $q_1$ aligns in the middle. I would like to align it with the top line (SELECT
). Is there a way to do that?
\documentclass{article}
\usepackage{listings}
\lstset{language=SQL}
\begin{document}
\begin{tabular}{ll}
$q_{1}:$ & \begin{lstlisting}
SELECT EMP.ENAME
FROM EMP NATURAL JOIN ASG NATURAL JOIN PROJ
WHERE PNAME="CAD/CAM"
\end{lstlisting}
\end{tabular}
\end{document}