gop373
12-08-2004, 10:32 AM
I have two tables. The first table name register.
id
Player_name
Email
Second table name showrank
id
Totalgainloss
CashAV
I want to show the Player_name who get the maximum Totalgainloss and also sho the number 0f totalgainloss.
I tried
sql="SELECT max(totalgainloss)as cashAV showrank.*, register.* FROM showrank INNER JOIN register ON showrank.id = register.id;"
set HighPrice=server.createobject("adodb.recordset")
HighPrice.open sql,conn,1,3
if not (HighPrice.eof) then
response.write HighPrice("cashAV")
response.write HighPrice("Player_name")
end if
But it did not work !! :(
id
Player_name
Second table name showrank
id
Totalgainloss
CashAV
I want to show the Player_name who get the maximum Totalgainloss and also sho the number 0f totalgainloss.
I tried
sql="SELECT max(totalgainloss)as cashAV showrank.*, register.* FROM showrank INNER JOIN register ON showrank.id = register.id;"
set HighPrice=server.createobject("adodb.recordset")
HighPrice.open sql,conn,1,3
if not (HighPrice.eof) then
response.write HighPrice("cashAV")
response.write HighPrice("Player_name")
end if
But it did not work !! :(