Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Select * from <table> as t1 inner join;
(select pcode, max(sodate) maxsodate from <table> group by pcode) as maxdates;
on t1.pcode=maxdates.pcode and t1.sodate = maxdates.maxsodate;
into cursor crsResult
SELECT Icode, Cifratej, Cifraten, Pidate FROM MyTable ;
WHERE Pidate = (SELECT MAX(Pidate) FORM MyTable)
* first get the record number of each record
Sele RECNO() as myId,* from a mytable into cursor mycursor
* second get the last record number of each icode
SELECT max(myid) as myid,icode from mycursor group by 2 into cursor mycursormax
* finally get the result
select mycursor.* from mycursor,mycursormax where mycursor.myid = mycursormax.myid