This are my database columns
1)Ipaddress(add ress of client machine) 2)data received (content downloaded from server)3)url(si tes accesssed by the users)
I want to display Ipaddresses based on highest data received.that is first i will have to sum the data recceived by particular ip address and then display the ip address that has received highest data.
[code=oracle]
select ip_address,sum( data_received) from log group by ip_address,data _received ORDER BY data_received desc ;
[/code]
when i try this the output I get is wrong not all the data is in descending order.
1)Ipaddress(add ress of client machine) 2)data received (content downloaded from server)3)url(si tes accesssed by the users)
I want to display Ipaddresses based on highest data received.that is first i will have to sum the data recceived by particular ip address and then display the ip address that has received highest data.
[code=oracle]
select ip_address,sum( data_received) from log group by ip_address,data _received ORDER BY data_received desc ;
[/code]
when i try this the output I get is wrong not all the data is in descending order.
Comment