sql first

Solutions on MaxInterview for sql first by the best coders in the world

showing results for - "sql first"
Mathilda
27 Sep 2017
1SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC)
2    WHERE ROWNUM = 1;
3-- Oracle 12c:
4SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
5    FETCH FIRST 1 ROW ONLY;
6SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
7    FETCH FIRST 10 ROW ONLY;
8SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
9    FETCH FIRST 10 ROWS ONLY;