Ok. I'm working in mySQL and basicly have 3 tables like this:
each time somebody goes from a registred site in the sites table to my site, site_id, visitor_ip and time stamp are registred in the hits_in table
and each time sombody goes the otherway from my site it's registred in the hits_out table.
Well what i want to do is to get a list over the sites with the according numbers of hits in and out, like:
Anybody knows hot to do this ?
thanks,, in advance
Code:
sites:
site_id
site_name
...
hits_in:
site_id
visitor_ip
timestamp
hits_out:
site_id
visitor_ip
timestamp
each time somebody goes from a registred site in the sites table to my site, site_id, visitor_ip and time stamp are registred in the hits_in table
and each time sombody goes the otherway from my site it's registred in the hits_out table.
Well what i want to do is to get a list over the sites with the according numbers of hits in and out, like:
Code:
site_id | site_name | hits_in | hits_out
1 | somesite | 23 | 34
2 | anothersi | 22 | 2
thanks,, in advance