+ Reply to Thread
Results 1 to 4 of 4

Query for products ordered by month(s) and ytd

  1. #1
    Registered User
    Join Date
    06-04-2007
    Posts
    61

    Query for products ordered by month(s) and ytd

    I am looking to create a single query for the following:

    I would like to capture a list of all products and their descriptions with ytd total, previous month, current month, and projected for next month.


    All information is held in the same view as follows:
    Product
    ProductDescription
    DisburseDate

  2. #2
    Forum Contributor
    Join Date
    04-23-2009
    Location
    IOWA
    MS-Off Ver
    2010 Professional
    Posts
    270

    Re: Query for products ordered by month(s) and ytd

    This is how I would do it.

    SQL Code:

    Please Login or Register  to view this content.
    You said you wanted totals, I assumed you had to have a Qty field.

    Hope this helps,

    Dan
    "I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
    If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!

  3. #3
    Registered User
    Join Date
    06-04-2007
    Posts
    61

    Re: Query for products ordered by month(s) and ytd

    I do not have a quantity field, all entries are listed seperately on a per order basis.

  4. #4
    Forum Contributor
    Join Date
    04-23-2009
    Location
    IOWA
    MS-Off Ver
    2010 Professional
    Posts
    270

    Re: Query for products ordered by month(s) and ytd

    K so remove [Qty] and place a 1 in there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1