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

Answer: 
```
SELECT PlateNo, TicketStatus, [Date]
FROM (SELECT ROW_NUMBER() OVER (PARTITION BY PlateNo ORDER BY [Date] ASC) AS [index],
             PlateNo,
             TicketStatus,
             [Date] 
      FROM YourTable) A
WHERE [index] = 1

```
ANSI Standard. Simple. Works across all DBs ...

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

```