Code: Select all
on calculateTotalSpent (customerName)
local total := 0
repeat with aRow in orders where customer = customerName
put the amount of aRow into total
end repeat
return total
end calculateTotalSpent
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on calculateTotalSpent (customerName)
local total := 0
repeat with aRow in orders where customer = customerName
put the amount of aRow into total
end repeat
return total
end calculateTotalSpent
Well, at least regenerative software has completely transformed gymnastics:
That's one scary video!!!!!!FourthWorld wrote: ↑Thu Jul 11, 2024 10:00 amWell, at least regenerative software has completely transformed gymnastics:
https://youtu.be/YwJIYj3hPAU
Code: Select all
...
### Replace ??? with the name of the column holding the amount of money:
SELECT SUM(???) FROM 'orders' WHERE 'customer' = 'customerName'
...