I am trying to make two table next to each other in two column page, I am using this example
1 but tables are coming like this

How to make them as this image
\begin{table}[!htb]
\floatsetup{floatrowsep=qquad, captionskip=4pt}
\begin{floatrow}[2]
\makegapedcells
\ttabbox%
{\begin{tabularx}{0.45\textwidth}{|c| *{2}{>{\centering\arraybackslash}X|}}
\hline
& Sensibilità [$\%$] & Specificità [$\%$] \\
\hline
$ϵ'$ & 53.492 & 77.906 \\ \hline
$ϵ''$ & 46.753 & 61.587\\
\hline
\end{tabularx}}
{\caption[Valori medi]{valori medi}
\label{val1}}
\hfill%
\ttabbox%
{\begin{tabularx}{0.45\textwidth}{|c| *{2}{>{\centering\arraybackslash}X|}}
\hline
& Sensibilità [$\%$] & Specificità [$\%$]\\
\hline
$ϵ'$ & 60\hphantom{.000} & 80.487 \\ \hline
$ϵ''$ & 54.545 & 67.777\\
\hline
\end{tabularx}}
{\caption[Valori medi]{valori medi}
\label{val2}}
\end{floatrow}
\vspace*{1cm}
\begin{floatrow}[2]
\ttabbox%
{\begin{tabularx}{0.45\textwidth}{c *{2}{>{\centering\arraybackslash}X}}
\toprule
& Sensibilità [$\%$] & Specificità [$\%$] \\
\cmidrule(lr){2-2}\cmidrule(lr){3-3}
$ϵ'$ & 53.492 & 77.906 \\
\addlinespace
$ϵ''$ & 46.753 & 61.587\\
\bottomrule
\end{tabularx}}
{\caption[Valori medi]{valori medi}
\label{val1a}}
\hfill%
\ttabbox%
{\begin{tabularx}{0.45\textwidth}{c*{2}{>{\centering\arraybackslash}X}}
\toprule
& Sensibilità [$\%$] & Specificità [$\%$]\\
\cmidrule(lr){2-2}\cmidrule(lr){3-3}
$ϵ'$ & 60\hphantom{.000} & 80.487 \\
\addlinespace
$ϵ''$ & 54.545 & 67.777\\
\bottomrule
\end{tabularx}}
{\caption[Valori medi]{valori medi}
\label{val2a}}
\end{floatrow}
\end{table}%
Second, I am using this example to make one table but it's coming quite big, I tried to use \scalebox{0.5} but it's not working.
How I can make this table small?
\begin{table}[!htb]
\setlength\tabcolsep{0pt}
\caption{Year Wise Treatment Frequencies} \label{tab:freq}
\centering
This table provides the frequencies.
\smallskip
\begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}}%
l T{4}T{2}T{2}T{4}}
\toprule
Year & {Nones}& {Option 1} & {Option 2} & {Total} \\
\midrule
2001& 126 & 16 & 2 & 144 \\
2002& 114 & 9 & 4 & 127 \\
2003& 115 & 7 & 1 & 123 \\
2004& 114 & 6 & 4 & 124 \\
2005& 104 & 5 & 8 & 117 \\
2006& 96 & 3 & 6 & 105 \\
2007& 93 & 2 & 4 & 99 \\
2008& 93 & 2 & 2 & 97 \\
2009& 85 & 2 & 11 & 98 \\
2010& 83 & 0 & 7 & 90 \\
2011& 74 & 0 & 12 & 86 \\
\midrule
Total & 1097 & 52 & 61 & 1210 \\
\bottomrule
\end{tabular*}
\end{table}
EDIT
This is what I came up, it's looks good.
\begin{table*}
\centering
\begin{tabular}{c | cccccc}
\toprule
\cmidrule(lr){5-7}
& column 1 & column 2 & column 3 & column 4 & column 5 & column 6 \\
\midrule
\multirow{4}{*}{Social Network}
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
\cmidrule(lr){2-7}
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6
\\
\addlinespace
\midrule
\multirow{4}{*}{Citation Dataset}
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
\cmidrule(lr){2-7}
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \\
\midrule
\multirow{4}{}{Citation Dataset}
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \
\cmidrule(lr){2-7}
& item 1 & item 2 & then 3 & item 4 & item 5 & item 6 \
\bottomrule
\end{tabular}
\caption{Example of professional table design}
\end{table}



twocolumndocument class in your question. Should both side by side tables fit inot a one of the two columns or into both columns? Your second image does not really show that. – leandriis Sep 24 '20 at 19:03stripenvironment, from packagecuted, to be locally in one-column mode. – Bernard Sep 24 '20 at 19:06Tcolumn type you used in your second table dedefined? – leandriis Sep 24 '20 at 19:08