Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6068919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:46:00+00:00 2026-05-23T09:46:00+00:00

I have an Access query that should pull the quantity purchased in a month

  • 0

I have an Access query that should pull the quantity purchased in a month for a set of items. My join is set to select all items from Analysis, and items from product that match analysis.

    SELECT AnalysisItems.Pmid, AnalysisItems.ProductName, Sum(Transactions.TransactionQty) 
    AS SumOfTransactionQty, Transactions.StoreAccount
    FROM AnalysisItems INNER JOIN Transactions ON AnalysisItems.Pmid = Transactions.Pmid
    WHERE (((Transactions.TransactionDate) Between #4/1/2011# And #4/30/2011#) 
    AND StoreAccount = 964290)
    GROUP BY AnalysisItems.Pmid, AnalysisItems.ProductName, Transactions.StoreAccount
    ORDER BY AnalysisItems.ProductName;

I want to see all 78 analysis items, whether they have a quantity value or not. This only returns items that have quantities. It also does not return values that are negative or values between 0 and 1 … it won’t show me 0.50 even though I know there are some decimal values in there. Everything is set to Standard decimal, scale 2

I’ve tried changing to general number and getting rid of the format completely but that doesn’t work either.

So my questions are: What can I try to see the decimal values in my query, and how can I see all the items?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:46:00+00:00Added an answer on May 23, 2026 at 9:46 am

    “I want to see all 78 analysis items, whether they have a quantity value or not.”

    If that means you want AnalysisItems rows included in the result set even if those items don’t have any matches in Transactions for the month of April and StoreAccount 964290, they will not be included when you place those conditions in the WHERE clause … you’ll only get the rows which match the WHERE clause conditions.

    I think you need to use a subquery for Transactions and move the WHERE clause into the subquery. And LEFT JOIN AnalysisItems to the subquery.

    SELECT
        a.Pmid,
        a.ProductName,
        Sum(t.TransactionQty) AS SumOfTransactionQty,
        t.StoreAccount
    FROM
        AnalysisItems AS a
        LEFT JOIN [
            SELECT
                Pmid,
                TransactionQty,
                StoreAccount
            FROM Transactions
            WHERE
                (TransactionDate Between #4/1/2011# And #4/30/2011#) 
                AND StoreAccount = 964290
            ]. AS t
            ON a.Pmid = t.Pmid
    GROUP BY
        a.Pmid, 
        a.ProductName,
        t.StoreAccount
    ORDER BY
        a.ProductName;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Microsoft Access database query that I'm trying to import into a
I have a Maketable query in an Access db that could use an Autonumber
I have an Access 2000 report based on a query like this SELECT ...
I have read-only access to a database that was set up for a third-party,
So I have an awful query that current exists in MS Access that I
I have a MS Access query ProductDetailsAll that is queried using an ASP.net web
I want to write a code that should let me select from a drop
I have inherited a Access database that has a query that SELECTs over 50
I have an access query which creates some output, 3 columns named e.g. A
I have the following Access 2002 query I'm running through OLE DB in .NET:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.