Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Percentage Select Statement problem

Status
Not open for further replies.

kernal

Technical User
Feb 27, 2001
415
US
I have a mysql table with:

ID
DATE
NAME
VALUE

Example of table:

ID DATE NAME VALUE
1 06/10/10 Visits 129
1 06/10/10 Unique_Visitors 52
1 06/10/10 Actions 1000
1 06/10/10 Bounce_Count 13

1 06/11/10 Visits 76
1 06/11/10 Unique_Visitors 36
1 06/11/10 Actions 1531
1 06/11/10 Bounce_Count 3

I need the value of the Bounce_Count to be the percentage of the just the Visits value so need results:

ID DATE NAME VALUE
1 06/10/10 Visits 129
1 06/10/10 Unique_Visitors 52
1 06/10/10 Actions 1000
1 06/10/10 Bounce_Count 10

1 06/11/10 Visits 76
1 06/11/10 Unique_Visitors 36
1 06/11/10 Actions 1531
1 06/11/10 Bounce_Count 4

Help is very appreciated.
 
I think I figured it out. Cross your fingers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top