Sorry i am newbee.
Which one ise better performance and clean code example of sql?
Thanks.
SELECT batchlatesttime
FROM (SELECT G.batchlatesttime
FROM table G
WHERE G.recordtype= '1'
ORDER BY G.anothertime DESC) --I dont know why we sort by anothertime
WHERE ROWNUM < 2;
SELECT max(G.batchlatesttime)
FROM table G
WHERE G.recordtype= '1';