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
Need Manual (PDF) for Canon ImageRunner C4080
Domino Web Site Rule - Redirection
Having problems getting my VOIP setup working?
typing software that allows me to type my own text
AS3 tween multiple arrows along a path
This search script is presenting the option for Next 10 when there aren't any results. What do I need to add to not show when there aren't results?
Windows XP and Microsoft Outlook and Windows Installer problems
classic asp recordset paging
sendAndLoad onHTTPStatus issue
Any ideas how to create your own loadbalancer using linux?