create table tq84_top_n ( id int primary key, txt varchar(11) );
create table tq84_top_n ( id int primary key, txt varchar(11) );
select top 4 id, txt from tq84_top_n;
top 4
clause: select top 4 id, txt from tq84_top_n order by txt;
txt
value is def ghi
. txt = 'def ghi'
records are now included). select top 4 with ties id, txt from tq84_top_n order by txt;
offset n rows fetch next m rows
allows to page through the record set: select id, txt from tq84_top_n order by id offset 5 rows fetch next 4 rows only;