View unanswered posts | View active topics It is currently Wed Nov 29, 2023 8:03 pm



Reply to topic  [ 3 posts ] 
 multiplying and adding problem 
Author Message
Junior Member

Joined: Mon Apr 14, 2008 3:23 pm
Posts: 2
Location: Washington DC
Post multiplying and adding problem
hi all,
i am having problem with the following code how can i multiply hour and rate in the following query then add the values then following query works fine to retrieve the data and link it any ideas

[php]
Select sum(hours.employ_hours)as hour
,hours.employ_name,empoly.employ_pay as rate
from hours left join empoly
on hours.employ_name=empoly.employ_name
group by employ_name
[/php]


Sun Aug 31, 2008 3:29 pm
Report this post
Profile
Junior Member

Joined: Thu Oct 20, 2011 4:33 am
Posts: 3
Post Re: multiplying and adding problem
ok, we have 8 outs..

what is the chance we hit our draw on the river?

8/47 + (39/47)*(8/46) = 340/1081 = .31

hmm, i get the first part..what i don't get is how we get to the 340/1081 part..where do these numbers come from?

Thnx for the help!


Tue Nov 01, 2011 12:19 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.