Oh, I see I am not the only one looking SQL engine for TDbf:)))
As I see it now, TDbf or any other flat file database (Sdf, for example) has great advantage over SQL servers in terms of portability, easy distribution and modular design when you want to develop cluster of different small front-end programs that operate with same set of data tables.
But the great disadvantage is lack of SQL.
The solution is to develop an SQL query component (SQL engine) that is TDataset descendant and can query different flat table datasets.
There is such component for Delphi, commercial though, called TxQuery...
The starting point could be TJanSQL engine...