Note that there are some explanatory texts on larger screens.

plurals
  1. POProblems implementing SQL query in Rapidminer to create report
    primarykey
    data
    text
    <p>My Questions: <li> Is there a way to add quotes around %{macro_name} in my SQL query ? <li> Is there a better way to create the required report (i.e. not using RapidMiner)?</p> <p>My Process:</p> <p>I'm currently trying to create a custom report of data stored in a MySQL database. Here is an hypothetical example of my table data:</p> <pre><code>Item_Name Item_Price Item_Stock Item_Timestamp Dish Soap 3.99 25 1/1/2013 12:00am Frogs 0.69 26 1/1/2013 12:00am Frogs 0.69 19 1/1/2013 1:00am Dish Soap 3.99 28 1/1/2013 1:00am </code></pre> <p>Item_Timestamp refers to the datetime of when the entry was made.</p> <p>I'm attempting to use RapidMiner to do the following: <li> Provide a summation of increases in Item_Stock for each unique Item_Name <li> Provide a summation of decreases in Item_Stock for each unique Item_Name <li> Provide the average rate of change over a specified time period</p> <p>My goal is to create a report that tells me whether items are being restocked at a rate of equilibrium with demand.</p> <p>In order to create a report for each unique Item_Name, I have created a RapidMiner process which loads unique Item_Name as an example set, then attempts to loop through the exampleset by using the extract macro operator which sends the Item_Name from each example to another SQL query. RapidMiner uses %{macro_name} as the syntax for the macro. My SQL query looks like:</p> <pre><code>Select Item_Name From thisTable Where Item_Name = %{macro_name} </code></pre> <p>The problem is that this query throws an exception, but I'm not sure why. Perhaps the problem is that %{macro_name} returns a string without the necessary quotes, but I am unsure.</p> <p>My questions are: <li> Is there a way to add quotes around %{macro_name} in my SQL query ? <li> Is there a better way to create the required report (i.e. not using RapidMiner)?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload