This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
on
02-12-2019
11:36 AM
- edited on
12-05-2022
02:17 PM
by
miteshnarottam
This article provides answers the most frequently asked questions related to In-Database Tools.
The SQL statement from the first inner join
The SQL statement with the introduction of another data source and a Union Tool increases the nested query
nice FAQ, I referenced it in my blog post as I was doing a quick evaluation of In-Database with Big Data engine Impala.
http://boristyukin.com/quick-evaluation-of-alteryx-in-database-tools/
This is well written and helpful.
The part I still can't find is the underlying sql code for the Write In-DB tool... If you use the dynamic output tool afterwards, there is no detail of what action was performed in SQL...
If anyone knows...
Cheers,
Frederic
@DiganP wrote:In-Database tools FAQ
...
How do the In-Database (In-DB) tools work?
- In-Database processing enables blending and analysis against large datasets without the data moving outside of the database. In-DB tools make a connection to your database, and everything is processed in the database rather than bringing the data over the network to your local computer. Data will only be streamed out of the database and on to your local machine if you use a Write Data In-DB, Data Stream Out or Browse In-DB tool. This can provide significant performance improvements over traditional analysis methods that require data to be moved to a separate environment for processing.
You mention that Write Data In-DB would stream the data out of the database into your local machine. Is that correct?
The link here suggests the opposite: Write Data In-DB
If Write would stream the data out then back in, I would see no reason to ever use the In DB tools.
Appreciate any feedback you can give!
Thanks!
@YEM Good catch. What I meant to say is that the addition of one of the three tools (Write Data In-DB, Data Stream Out or Browse In-DB tool) completes the query and sends it to the underlying database. I'll fix this asap!
Is it possible to use the Write Data In-DB to write a dataset to "temp" table and then use some other IN-DB tool to execute a complex SQL statement that can use the "temp" table?
for visual reference this would be ideal.
I am aware of the In-DB join, however, this is a simplistic example. In reality I need to run a complex sql statement, which can perform a join as in the example.
The final output would be writing the blended data(claimStats.yxdb and InvoiceStats.yxdb) into a SQL table or generating some sort of report. I can't figure out how to make Container 37 dependant on Container 36 completing first. The "Block Until Done" doesn't appear to be able to link to the "Input Data" tool.
@MK007 others can correct me if I am wrong, I am fairly new to exploring In-DB but you cannot cross databases with In-DB as there will be an architecture mismatch. That said if it is a different table within the same DB then I think you can. A lot depends on what exactly you want done.
Container 36:
From what you show I think Container 36 is summarizing some "Customer" data and writing to a table. If the table is in the same DB then the SQL in Container 37 could be done in In-DB tool form and joined.
Caveats/concerns: