The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Extract Max or MIn value from a set of examples
Hi,
I am quite new to RapidMiner and I want to use it as an ETL-tool.
How do I extract the record (or example), in a group of records (examples) sharing the same identifer, for which a certain attribute have the maximal or minimal value?
For example, consider the following set of data rows, all having the same ID:
ID Attribute1 Attribute2
xx 25 Feb 19 2009
xx 16 Jul 26 2007
xx 34 Apr 14 2008
What operator should I use to get THE record which contains the max value of Attribute1. What operator should I use to retrieve the record containing the most recent date in Attribute2?
Thanks in advance!
I am quite new to RapidMiner and I want to use it as an ETL-tool.
How do I extract the record (or example), in a group of records (examples) sharing the same identifer, for which a certain attribute have the maximal or minimal value?
For example, consider the following set of data rows, all having the same ID:
ID Attribute1 Attribute2
xx 25 Feb 19 2009
xx 16 Jul 26 2007
xx 34 Apr 14 2008
What operator should I use to get THE record which contains the max value of Attribute1. What operator should I use to retrieve the record containing the most recent date in Attribute2?
Thanks in advance!
0
Answers
You should read the help section for "Read Database" operator, and the resources listed under "help".
However, the Build SQL Query dialog doesn't give me the option to use the Max() function. If I type in the expression below, the operator won't return any data
SELECT "MATERIAL", "PODATE", Max("PRICE") AS T
FROM "tbl_POHistory"
But, the strange thing is, THIS works:
SELECT MAX("PRICE")AS T
FROM "tbl_POHistory"
How shoud I interpret that?
(MATERIAL, PODATE and PRICE are all columns in the table tbl_POHistory from which I am retrieving the data)
I use MS SQL 2005, if I do this... I get this.. whereas this works fine. So my answer is that your SQL was not as perfect as it might be.