Home » Listing Details
Top Websites
  1. Mark Polino's DynamicAccounting.net
    Over 5100 resources listed.
  2. Dynamics GP Help
    Over 1700 resources listed.
  3. Developing for Dynamics GP - By David Musgrave and the MS GP Dev Support Team
    Over 900 resources listed.
  4. Microsoft Dynamics Partner Community Blog
    Over 700 resources listed.
  5. Mariano Gomez at The Dynamics GP Blogster
    Over 700 resources listed.
  6. Mohammad Daoud's Dynamics GP Blog
    Over 500 resources listed.
  7. Vaidy Mohan at Dynamics GP - Learn & Discuss
    Over 400 resources listed.
  8. Inside Microsoft Dynamics GP Official Blog
    Over 400 resources listed.
  9. Christina Phillips, Steve Endow & Lorren Zemke at Dynamics GP Land
    Over 400 resources listed.
  10. Rose Business Solutions Blog New
    Over 300 resources listed.
  11. eOne Business Solutions Blog
    Over 300 resources listed.
  12. Frank Hamelly at GP2theMax
    Over 300 resources listed.
  13. About Dynamics, Development and Life
    Over 300 resources listed.
  14. Dynamics CPM
    Over 200 resources listed.
  15. Janakiram M.P. at DynamicsBlogger
    Over 100 resources listed.
  16. Victoria Yudin's Dynamics GP Website
    Over 100 resources listed.
    Victoria Yudin
  17. VS Tools Forum
    Over 100 resources listed.
    Your Resource for Visual Studio Tools for Dynamics GP
  18. Inside Microsoft Dynamics GP Official Blog
    Over 100 resources listed.
  19. Leslie Vail at Dynamics Confessor Blogspot
    Over 100 resources listed.
  20. BKD Dynamics GP Insights Blog
    Over 100 resources listed.
  21. US Dynamics GP Field Team Blog
    Over 100 resources listed.
  22. Catherine Eibner MBS Developer Evangelist
    Over 100 resources listed.
  23. Sivakumar Venkataraman at Interesting Findings & Knowledge Sharing
    Over 100 resources listed.
  24. Dynamics Small Business
    Over 100 resources listed.
  25. Belinda, The GP CSI
    Over 100 resources listed.

ID:9896
Title:How to See the Dynamics GP Items You Didn't Sell
URL:http://dynamicssmallbusiness.blogspot.com/2010/05/how-to-see-dynamics-gp-items-you-didnt.html
Description:Ever have someone that wants to see GP Items that didn't sell lately?
Here is the SQL statement:


select itemnmbr, itemdesc, Item_Sales_Aggregates.Last_Sold, Item_Sales_Aggregates.Line_Qty from iv00101 left outer join

(

select max(document_date) as Last_Sold,count(document_date) as Line_Qty, item_number from

(select sop10100.docdate as document_date, sop10200.itemnmbr as Item_Number, sop10100.soptype as sop_Type
from sop10100 join sop10200
on sop10100.sopnumbe=sop10200.sopnumbe and sop10100.soptype=sop10200.soptype

union

select sop30200.docdate as document_date, sop30300.itemnmbr as item_number, sop30200.soptype as sop_Type
from sop30200 join sop30300
on sop30200.sopnumbe=sop30300.sopnumbe and sop30200.soptype=sop30300.soptype) as B

where sop_type=3 and document_date between '1/1/2009' and '5/30/2010'
group by item_number

) as Item_Sales_Aggregates

on iv00101.itemnmbr = Item_Sales_Aggregates.item_number

where line_qty is null
Category:
Link Owner:
Date Added:June 17, 2010 05:10:59 AM
Number Hits:1
RatingsAverage rating: (0 votes)
Reviews

No Reviews Yet.

 
GPWindow.com

Developed and presented by
Smith & Allen Consulting, Inc.,
GP specialists since 1991.