Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by dougday

  1. dougday

    Struggling with query

    Well, that really depends on how the tables are structured, but I'll make some assumptions and take a shot :) Here's what I would do: SELECT t2.stockCode, COUNT(*) as qtySold FROM table2 t2 WHERE (t2.custNumber = 'blabla') AND (t2.transDate >= 'startdate') AND (t2.transDate <=...

Part and Inventory Search

Back
Top