MySQL: Get total in detail page and summary page -
My data looks like this:
User Id hours billatter 1 1.50 2.25 1 2.50 3.25 1 3.50 3.25 2 5.50 4.25 2 6.50 5.25 2 7.50 5.25 In the expansion page, I have this question to get the total expenditure for each user ID
< Rounds (SM (hour * billat) as code> SELECT UserID, URIID 22.88 for userIDID and 96.88 for UserID_2 (total 119.76 ) from SELECT SUM (TotalSpend) (select UserID, ROUND) In the summary page, I will have to start a query with 2 SELECT statements for the correct selection: (SUM (hour * billarate), 2) Meritable userID in (1, 2) group by user id from AS total spread)
Is there anyway that I can get a total in the Summary page with a selection statement
>
Comments
Post a Comment