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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiplying two column on diff tables based on a column in another tab

Status
Not open for further replies.

home6722

MIS
Mar 2, 2009
1
i have two columns

1) billableHours from TimeCardHours table
2) billingRate from Employees table.

i need to calculate the totalCost with the formula
(billableHrs * billingRate for the employee to whom the time card is issued) into totalcost column on timeCards table.
Any help on how to go about this?

 
Code:
SELECT TimeCardHours.billableHrs * Employees .billingRate
FROM Employees 
INNER JOIN TimeCardHours ON TimeCardHours.EmplFK =
                            Employees.PK

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top