Question: Is there a way to obtain current line number in executing Qt Script, using objects and functions in it?

Answer: 
But I suggest you to change your *Date* field to other field name, like **the\_date** .
It's just for avoid clashed with SQL syntax.

`SELECT *, MIN(the_date) AS min_date FROM YOUR_TABLE;`
ANSI Standard. Simple. Works across all DBs ...

```
select * from YourTable
where [Date] = (select min([Date]) from YourTable)

```