Combine Two Queries Into One

Thank you for looking at my question,

I have a query  in MS Access 2013 that I know contains more than one contract against item

Select Item, Contract, StartDate, EndDate, Value
From tblContracts
Where EndDate > Now();

To find the multiple contracts I did a count of the instances of each item no ...

Select Item, Count of Item
From qryContracts_Current
Group By qryContracts_Current.Item;
Where Count of Item>1;

... and then re-queried the original query vs the multiples query

Select qryContracts_Multiple.Item, qryContracts_Current.*
FROM qryContracts_Current_Multiple INNER JOIN qryContracts_Current ON qryContracts_Current_Multiple.Item = qryContracts_Current.Item;

It strikes me that, if I were a little more experienced/sophisticated I should be able to achieve the same result with one query or at most two.

Could somebody show me how to do this more efficiently please?
Gary CroxfordOperations Support AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
Select Item, Contract, StartDate, EndDate, Value, count(Item) as Cnt
From tblContracts
Where EndDate > Now()
Group By  Item, Contract, StartDate, EndDate, Value
Having count(Item) > 1

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gary CroxfordOperations Support AnalystAuthor Commented:
Excellent, Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.