-- select the first row of database table select * from company limit 1 ----For DB2 SELECT * FROM table_name FETCH FIRST 20 ROWS ONLY