Buonasera a tutti
Problema:
nel database ho la seguente colonna:
-11
-10
-9
ecc.
-2
-1
0
1
2
ecc.
9
10
11
Ora devo dividere tale tabella in 2 colonne
0 0
1 -1
2 -2
ecc.
9 -9
10 -10
11 -11
ma come faccio a fare ciò.
io ho provato così
codice:
SQL = "select * from tabellapar "
Set TabPar = Server.CreateObject("ADODB.Recordset")
TabPar.open SQL,PannelloConn,3,1
contarighe = 0
if not TabPar.EOF then
while not TabPar.EOF
if TabPar("scost") <= 0 AND TabPar("scost") >= -11 then
scostamento = TabPar("scost")
end if
if TabPar("scost") <= 11 AND TabPar("scost") >= 0 then
scostamento2 = TabPar("scost")
end if
if TabPar("scost") <= 0 AND TabPar("scost") >= -11 OR TabPar("scost") <= 11 AND TabPar("scost") >= 0 then
contarighe = contarighe + 1
Response.write "<td CLASS=intclassi>" & scostamento & "</td>"
Response.write "<td CLASS=intclassi>" & scostamento2 & "</td>"
Response.write "</tr>"
end if
TabPar.MoveNext
wend
end if
ma così facendo ho si le due colonne ma non come le voglio io
Grazie