Skip to content
Discussion options

You must be logged in to vote

Assuming the table is in a file called QATTISSUE36.md and you had added it in settings to be loaded by the plugin this will show you who has the most values. I left all the details in there, but you can update and modify as needed.

query: |
  SELECT SUM(Jim) AS JimTotal, SUM(Paul) AS PaulTotal, SUM(Jim) > SUM(Paul) AS JimLarger
  FROM QATTISSUE36
template: |
  {{#each result}}
  {{JimTotal}} - {{PaulTotal}}
  {{JimLarger}}
  {{#if JimLarger}}Jim has {{JimTotal}}{{else}}Paul has {{PaulTotal}}{{/if}}
  {{/each}}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sytone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants