I'm trying to do electronic grade book in Java. I want to insert values of Marks and Description into rows

<%
try{
connection = DriverManager.getConnection(connectionUrl, userid, password);
statement=connection.createStatement();
String sql ="select Marks from Pitew_Matematyka";
resultSet = statement.executeQuery(sql);
while(resultSet.next()){
%>
<tr>
<td>
<%=resultSet.getString("Marks") %>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<% }
connection.close();
} catch (Exception e) {
e.printStackTrace();
}
%>
</tr>
But when I try to add Description to row, it looks like this:

Is there any way I can also add description to the 3rd row?
<%
try{
connection = DriverManager.getConnection(connectionUrl, userid, password);
statement=connection.createStatement();
String sql ="select Marks from Pitew_Matematyka";
resultSet = statement.executeQuery(sql);
while(resultSet.next()){
%>
<tr>
<td>
<%=resultSet.getString("Marks") %>
</td>
<td>
<% sql ="select Description from Pitew_Matematyka"; %>
<%=resultSet.getString("Description") %>
</td>
<td></td>
<td></td>
<td></td>
<%}
connection.close();
} catch (Exception e) {
e.printStackTrace();
}
%>
</tr>
I tried many solutions and any of the solution I tried didn't work.