I have to make three tables and I am using the code below.
\begin{table}[ht]
\caption{Performance of each band on recognizing classes 1 and 2} \label{tab1}
\begin{tabularx}{\textwidth}{|*{4}{L|}}
\hline
\multirow{2}{*}{Band} &
\multicolumn{2}{c}{CCS} & \\
& {Class 1} & {Class 2} \\
\midrule
Alpha & 61 & 55 & \\
\hline
Beta & 70 & 59 &\\
\hline
Theta & 55 & 65 &\\
\hline
\end{tabularx}
\end{table}
\begin{table}[ht]
\caption{Performance of each band on recognizing classes 1 and 3} \label{tab1}
\begin{tabularx}{\textwidth}{|{4}{L|}}
\hline
\multirow{2}{}{Band} &
\multicolumn{2}{c}{CCS} & \
& {Class 2} & {Class 3} \
\midrule
Alpha & 49 & 56&
\hline
Beta & 73 & 36&\
\hline
Theta & 52 & 57& \
\hline
\end{tabularx}
\end{table}
\begin{table}[ht]
\caption{Performance of each band on recognizing classes 2 and 3} \label{tab1}
\begin{tabularx}{\textwidth}{|{4}{L|}}
\hline
\multirow{2}{}{Band} &
\multicolumn{2}{c}{CCS} & \
& {Class 2} & {Class 3} \
\midrule
Alpha & 58 & 57 &\
\hline
Beta & 62 & 52 & \
\hline
Theta & 66 & 58 & \
\hline
\end{tabularx}
\end{table}
And as expected, I got the tables as shown in the image below.

But this is taking too much space. I want to put all the three tables in a single row side by side. How can I do that?

minipage. – Gunter Jun 13 '21 at 11:25tablebut why are you usingtabularxhere and forcing the tables to be unnaturally wide, and why specify 4 columns when they only have 3? Please always provide code in a form that reproduces the image shown. You have posted a fragment with undefined commands like\multirowand undefined column typeL, your code apperas to show tables with a vertical rule from|but the image shown has no rules. – David Carlisle Jun 13 '21 at 11:38Lcolumn type, if you don't mind? – Bernard Jun 13 '21 at 12:11