Select * from (select IdFactura, IdCliente From Facturas Where Monto >= 10000 And Monto <= 20000 Order by IdFactura) Where Rowid <= 2;