//assuming you have rs as a populated recordset to your SQL Statement and the first order by of the statement is Language
//set last language value
ll=""
//set table definition
tbl=" hdr | Season | Single | Double | "
do while not rs.eof
//if the language changes close the last table and create a new one
if rs("Language") <>ll then
//if this is a new language then close the last table
if ll<>"" then response.write " "
//set the last language
ll=rs("Language")
//output the table header
response.write replace(tbl,"hdr",ll)
end if
//output a line of data for this record
response.write " |