May 28, 2016 #1 alisaif ISP Joined Apr 6, 2013 Messages 418 Location AE Hi, How can I extract the last supply date from sales transaction files. Dbf fields are: 1. sino 2. invdate 3. icode 4. 5. 6..... I want icode and invdate(Date of supply). Thanks Saif
Hi, How can I extract the last supply date from sales transaction files. Dbf fields are: 1. sino 2. invdate 3. icode 4. 5. 6..... I want icode and invdate(Date of supply). Thanks Saif
May 28, 2016 #2 EzLogic Programmer Joined Aug 21, 2001 Messages 1,230 Location US select icode,max(invDate) as LastInvDate from yourTable group by icode into cursor Somecursor sele somecursor brow Ez Logic Michigan Upvote 0 Downvote
select icode,max(invDate) as LastInvDate from yourTable group by icode into cursor Somecursor sele somecursor brow Ez Logic Michigan
May 28, 2016 Thread starter #3 alisaif ISP Joined Apr 6, 2013 Messages 418 Location AE Thanks, I did check it but I hope it will work. Saif Upvote 0 Downvote
May 31, 2016 Thread starter #4 alisaif ISP Joined Apr 6, 2013 Messages 418 Location AE Hi, Please go through the attached image. I want four columns; Icode, Invdate, Quantity and Value. But only the highlighted value. Thanks Saif Upvote 0 Downvote
Hi, Please go through the attached image. I want four columns; Icode, Invdate, Quantity and Value. But only the highlighted value. Thanks Saif
May 31, 2016 #5 JRB-Bldr Programmer Joined May 17, 2001 Messages 3,281 Location US Saif said: Please go through the attached image. I want four columns; Icode, Invdate, Quantity and Value. Click to expand... Ez Logic pretty much already gave you the code or at least the approach. Rather than waiting for someone to GIVE YOU THE CODE, what have you tried? And what were the results? Good Luck, JRB-Bldr Upvote 0 Downvote
Saif said: Please go through the attached image. I want four columns; Icode, Invdate, Quantity and Value. Click to expand... Ez Logic pretty much already gave you the code or at least the approach. Rather than waiting for someone to GIVE YOU THE CODE, what have you tried? And what were the results? Good Luck, JRB-Bldr