Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
912 views
in Technique[技术] by (71.8m points)

sql - I'm trying to Calculate the amount to be charged for each assignment. Using Oracle DBMS

I have this so far but stuck.....

SELECT a.Total_Assignment_Hrs, a.Assignment_Cost_Per_Day
SUM (Total_Assignment_Hrs-Assignment_Cost_Per_Day) AS Assignment_Cost
FROM Projects p,Employee_Records e, Assignments a
WHERE p.ProjectID=a.ProjectID
GROUP BY a.AssignmentID, a.Assignment_Name;

The issue i'm having is that i need to calculate the top SUM but i can't get it to produce a result with the sum statement in how do extend it to show what i need ?.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

enter image description here

At the minute i can only get to here but need to calculate the total assignment hrs and assignment cost per day as a total


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...