Thinking about sumations

using the timestamp as a placeholder worked for me…
Thanks a bunch… SQL is very new to me.
Where might I use this SQL code lets say if I wanted to push a button to call the insert query.