: MIN() MAX() AAAA TTTT, . , .
( .stats ) , 94 :
select * from
(select col1 from mitable limit 1)
union
select * from
(select col1 from mitable limit 1 offset
(select count(0) from mitable) -1);
(281 624 718).
Then it is much simpler (works if the table was created WITHOUT ROWID ) [sql keywords in capital letters]:
SELECT col1 FROM mitable
WHERE ROWID = (SELECT MIN(ROWID) FROM mitable)
OR ROWID = (SELECT MAX(ROWID) FROM mitable);
This ran 55 steps of the virtual machine in one table and gave the same answer.
source
share