Microsoft
Software
Hardware
Network
Question : MsAccess Query
Hi guys
I have a large Access table that contains sales history
This SalesHistory Table contains 3 columns (see sample below)
CUST_NO ITEM_NO OrderDate
13909 6271398 4/16/2008
13909 6271398 12/31/2008
13909 6271398 6/3/2009
13909 6271398 8/26/2009 ***
14012 8891070 7/29/2008
14012 8891070 9/9/2008
14012 8891070 11/13/2008 ***
14012 8891084 7/29/2008
14012 8891084 9/9/2008
14012 8891084 11/13/2008 ***
14071 8671315 11/6/2009
14071 8671315 6/3/2010 ***
14071 8671382 8/17/2007
14071 8671382 6/3/2008 ***
All records in above table contains disticnt 3 columns
I am trying to write a sql query will create a new table with the same structure
and includes only records of the last sale of each inventory item
That is the new table will contain only the six records with asterisks
Thank you
Dory
Answer : MsAccess Query
To create a new table:
Select
CUST_NO,
ITEM_NO,
Max(OrderDate) As OrderDateLatest
Into
tblYourNewTable
From
tblYourTable
Group By
CUST_NO,
ITEM_NO;
/gustav
Random Solutions
Citrix \ IE - Published Web Site
can ping by ip, and by name, but not browse
How to allow Internet access between untrusted zones on SSG-140
SQL Server function to call the excel function gammaln
Windows batch file to trigger e-mail notification.
#550 5.3.4 SMTPSEND.OverAdvertisedSiz
e; message size exceeds fixed maximum size ##
Outlook not attack shortcut (lnk) attach directly the file
Thumbnail Photo on Exchange 2007
asp.net connection string error.
Flex CountDown Timer