hi all,
I am working on outputting data to be read into excel from access DB.
The situation now is that im having problems filtering off rows of data which are the same but only having 1 field indifferent from the rest.
Example : SELECT DISTINCT Orders.No, PartNo, CustName, CustAdd, DateReceived FROM Orders;
OrderNo PartNo CustName CustAdd DateReceived
1 FF1 ABC ABCADD 14/7/2007
1 FF1 ABC ABCADD 15/7/2007
how do i write an SQL to remove the later date because i only want the row of data from the earlier date(14/7/2007)
i cant change the db design to help me so is there anyway?
I am working on outputting data to be read into excel from access DB.
The situation now is that im having problems filtering off rows of data which are the same but only having 1 field indifferent from the rest.
Example : SELECT DISTINCT Orders.No, PartNo, CustName, CustAdd, DateReceived FROM Orders;
OrderNo PartNo CustName CustAdd DateReceived
1 FF1 ABC ABCADD 14/7/2007
1 FF1 ABC ABCADD 15/7/2007
how do i write an SQL to remove the later date because i only want the row of data from the earlier date(14/7/2007)
i cant change the db design to help me so is there anyway?
Comment