Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Recommended Posts

Haven't had much luck on this forum as of late, but I thought I'd give it a crack...


Can you have an SQL Calculation that shows the same field twice?







ExecuteSQL ( "

SELECT State, Sum (Qty)

FROM Sales


SaleDate BETWEEN ? and ? and Product =? MINUS SaleDate BETWEEN ? and ? GROUP BY State


;"";¶;"1/1/2015"; "31/1/2015" ; "FSC"; "1/2/2015"; "28/2/2015") )



With an end result of


VIC 20 3

NSW 38 18




I am trying to work out growth using SQL with all of the sales for a 2 year period dumped in one table as a flat table per sales line...

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Terms of Use