| http://www.w3.org/ns/prov#value | - Though your concepts are not clear I tell you primary key is a unique key that can be compared with any table with a secondary key i.e. Foreign Key .First of all find out date in Decresing order i.e.|| SELECT iep.datora,puf.id_farm,puf.cod FROM iep,puf Where iep.datora=puf.datora ORDER BY datora DESC ||This will make the highest date in top. then use TOP property of sql and compare them by taking
|