Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Run SQL statement based on generated input fields alone

$
0
0
Hello there--

I managed to merge two XML data-sets into the raw data I need for minor calculations (in the form of one table of fields/ rows).


I need to do some very simple calculations, like subtract the Field A datetime from Field B datetime, then sum the results.

This is extraordinarily easy to do in SQL. There's even an extremely easy conversion from XML datetimes to SQL datetimes aka convert("XMLdate", datetime).


So I thought I could use the SQL scripting in Pentaho instead of laboring over JavaScript. However, this functionality seems to want to connect to a database (again, I just want to run SQL operations on fields I created from XML docs).

I can connect it to a dummy database anyway, but where does it write the output fields from the select statement? It doesn't seem like it does --- are "insert" or "update" fields the only possible output of this scripting step? Help please!

Viewing all articles
Browse latest Browse all 16689


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>