Thread: country column
View Single Post
  #1  
Old 11-28-2006, 05:00 AM
Kutlish Kutlish is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kutlish is on a distinguished road
Default country column

Hi folks,
I have a table with a country column. I need to do one query to get the percentage of each country in my table.

select
country,
((count(rowid)/total_rows)*100)
from my_table
group by country -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - country column
Thread: country column
View Single Post
  #1  
Old 11-28-2006, 05:00 AM
Kutlish Kutlish is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kutlish is on a distinguished road
Default country column

Hi folks,
I have a table with a country column. I need to do one query to get the percentage of each country in my table.

select
country,
((count(rowid)/total_rows)*100)
from my_table
group by country -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote