Pretty straight forward thing.
Having a DSV file, say, data.txt
name;surname;age;money
Joe;Dun;13;4
Don;Dapper;44;100
Freddie;Mercury;45;888
I wish there was a program I could make Sqlquereis over that. like,
dsvsql -d\; -q "select sum(money) from data.txt where surname like 'D%'" data.txt
Which would I wish it outputs:
sum(money)
104
Now, I found this old question which doesn't have a satisfactory answer... and also there, they mention CsvJdbc which seems close, but its not quite it. What I want was something totally terminal based and that I wouldn't need to code in order to run.
I'm constantly dealing with lots of DSV files with different fields and analysing it. This would come super handy...
any thoughts?
cheers!